In my situation there is no DB. I store the info that is used to create the
TextBox also in the ViewState.
After reading the article I tried something. I put the following code...
protected override void OnLoad(EventArgs e)
{
base.OnLoad (e);
TrialCtrl= new TextBox();
this.Controls.Add( TryCtrl );
TrialCtrl.ID = "trialctrl";
}
....into my class as an OnLoad event handler and it worked and also didn't
work. What worked is that the value that the user enters into the TextBox
survives the first PostBack, but not the others. After the second and
following postbacks the text is lost again. ... makes no sense ?!?? Any idea
why this happens ?
"R. Thomas, aka Xtreme.Net" <> wrote
in message news:ACD2C1D3-D8B5-46F9-ACD2-...
> Sorry I didn't read your first post properly.
> Ok, check this link out. It will solve your problem..
> http://xtremedotnet.blogdrive.com/archive/53.html
> Do lemme know if you managed to get out of your problem...
> Hth..
> R. Thomas