Jul 17, 2009, 10:51 AM
[CLOSED] Programmatically load User Control from AJAXMethod
Hi There,
I have a slight issue, I am trying to load a User Control from serverside from and AJAXMethod but it is failing. This is the code that I am using to add the new User Control:
Thanks in advance
SamFoot
I have a slight issue, I am trying to load a User Control from serverside from and AJAXMethod but it is failing. This is the code that I am using to add the new User Control:
Control opControlToLoad = new Control();
opControlToLoad = this.LoadControl("~/Video/VideoUC.ascx");
this.PlaceHolderTest.Controls.Add(opControlToLoad);
This works fine on a conventional ASP.NET Page_Load but the User Control is not added when I call an AJAXMethod from clientside.Thanks in advance
SamFoot