I've been sracthing my head on this for weeks, if you have an idea please, let me know.
I'm trying to port a custom webcontrol into a webpart.
The webcontrol works fine in a traditionnal asp site, when I embedded in a webcontrol.
But, when I embedded it in a web part, the control do not load post back data.
Event fire and everything is ok, but no poast back data.
This very simple code produce the error:
public webpart1 : WebPart
{
private webcontrol1 ctrl;
protected overrive void CreatChildControls()
{
ctrl = new webcontrol1();
Controls.add(ctrl);
bool prob=ctrl.data == null; //this is always true
}
}
Any idea what might causing this?