Input text control disappears on postback

fingaz1

New Member
I have a few Input Controls (text) created in the code-behind in this manner as part of dynamic RadiobuttonList (so that a textbox is next to a radiobutton):\[code\]RadioButtonList radioOption = new RadioButtonList(); radiobuttonlist.Items.Add(new ListItem(dt.Rows[9].ToString() + " <input id=\"" + name + "\" runat=\"server\" type=\"text\" value=http://stackoverflow.com/"Enter text\" />")\[/code\]All the controls are within UpdatePanel.Everytime there is postback, the text within the Input control disappears.How do I keep the input text values?Any ideas? Much appreciated!
 
Back
Top