[CLOSED] Programmatically load User Control from AJAXMethod

  1. #1

    [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:

            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
  2. #2

    RE: [CLOSED] Programmatically load User Control from AJAXMethod

    Hi,

    It is not supported. Please use UpdatePanel for example
  3. #3

    RE: [CLOSED] Programmatically load User Control from AJAXMethod

    FYI, this functionality should be supported in the v1.0 release.

    At the moment, no release date has been set for v1.0.


    Geoffrey McGill
    Founder
  4. #4

    RE: [CLOSED] Programmatically load User Control from AJAXMethod

    Thanks for the update, at the moment I changed my workflow to negate the issue but it would definitely be a feature that would be handy to see in v1.0.

    Cheers for the update

    Sam

Similar Threads

  1. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  2. [CLOSED] Problem on dynamic load user control
    By andreasperanza in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 22, 2011, 4:23 PM
  3. how to load user control ondemand.
    By Satyanarayana murthy in forum 1.x Help
    Replies: 2
    Last Post: Jun 17, 2010, 7:40 AM
  4. Diaplay User Control using ajaxmethod
    By signup in forum 1.x Help
    Replies: 0
    Last Post: Oct 05, 2009, 6:19 AM
  5. AjaxMethod in User Control
    By simbal in forum 1.x Help
    Replies: 3
    Last Post: May 05, 2009, 5:25 PM

Posting Permissions