asp.net - when add dynamic control in update panel then getting failed to load viewsate error? -
Are the thoughts failing to load an error when adding dynamic controls to the update panel?
See the following example: -
UpdatePanel Panel = New UpdatePanel ();
panel.ContentTemplateContainer.Controls.Clear (); If (strPopupType == "O") {control ctrl = Page.LoadControl (@ "~ / module / mlm / uniViewewor / desktop module / order details.Secux");
Command-order orderdetails = (OrderDetails) ctrl; Orderdetails.ID = "command" + elementID; Orderdetails.OrderID = Convert toInt32 (elementID); //orderdetails.ModuleSkinStyleName = CurrentModuleSkin; Panel.ContentTemplateContainer.Controls.Add (ctrl); } And if (strPopupType == "U") {control ctrl = Page.LoadControl (@ "~ / module / mlm / unileview / desktop module / user details."); UserDetails userdetails = (UserDetails) ctrl; Userdetails.ID = "user" + elementID; // userdetails.UserModuleSkinStyleName = CurrentModuleSkin; Userdetails.UserID = New Guide (elementID); Panel.ContentTemplateContainer.Controls.Add (ctrl); }
Hi blush, take a look at this
Comments
Post a Comment