Hi, I tried to use the UpdatePanel to dynamically load my web user
control and whenever I click the same button again, I get this error:
"The state information is invalid for this page and might be
corrupted."
Sample ASP code:
protected void ImageButtonDetails_Click(object sender,
ImageClickEventArgs e)
{
ASP.gvproject_bodycontrols_addprojectcontrol_ascx ctrl = new
ASP.gvproject_bodycontrols_addprojectcontrol_ascx();
UpdatePanelDetails.ContentTemplateContainer.Controls.Add(ctrl);
Page.Response.Clear();
//UpdatePanelDetails.Visible = true;
}
protected void ImageButtonUsers_Click(object sender,
ImageClickEventArgs e)
{
ASP.gvproject_bodycontrols_projectusersrolesfunctionscontrol_ascx cntrl
= new
ASP.gvproject_bodycontrols_projectusersrolesfunctionscontrol_ascx();
UpdatePanelDetails.ContentTemplateContainer.Controls.Add(cntrl);
Page.Response.Clear();
//UpdatePanelUsers.Visible = true;
}
I am using three updatepanels: UpdatePanelDetails, one contains buttons
and the third contains UpdatePanelDetails.
Any hel is appreciated
Ihab
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---