Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir/Madam,

I have the controls like checkbox,telerik control like RadComboBox
If i unselect the checkbox,
Postback will happen and then RadComboBox(dynamically created control) goes away and then the data that has been preserve previously in RadComboBox also disappear

How to preserve the dynamically created control and its data in postback?



Thanks in advance
Posted

By using ViewState. See details here: Understanding ASP.NET View State[^]
 
Share this answer
 
v2
C#
protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack){

// Here Create ur Dynamica controls..
}

   }
 
Share this answer
 
Comments
MThiyagaraja 17-Dec-14 8:41am    
Mr.Perumal,
Here i couldn't find the controls in Pageload.
How to find the controls in pageload

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900