[CLOSED] How can I get this destroy call to render in a DirectEvent?

  1. #1

    [CLOSED] How can I get this destroy call to render in a DirectEvent?

    I do not know why but I cannot get this destroy to render. I suspect it's because it's not attached to a parent control
                ( new Hidden() {
                    ID = "App." + ctlID,
                    IDMode = IDMode.Static
                } ).Destroy();
    Last edited by Daniil; Jan 10, 2014 at 10:45 AM. Reason: [CLOSED]
  2. #2


    I think I have found the solution. This will render if I add the Hidden to Page.Controls.

    Still, as a slightly different question related to the same. I'm wondering, is there a way to push X.AddScript or other render to beginning of the returned stream in a DirectEvent?
  3. #3
    Hi @michaeld,

    For example,
    Do you need "alert(2)" to be executed before "alert(1)"?

    Maybe, this way:

Similar Threads

  1. [CLOSED] global function call after render
    By RCM in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 04, 2013, 4:42 AM
  2. [CLOSED] Call Server DirectEvent from ExtJs
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 12, 2013, 12:52 PM
  3. Replies: 4
    Last Post: Apr 09, 2013, 4:03 PM
  4. how to call the usercontrol in render handler
    By krishna in forum 1.x Help
    Replies: 1
    Last Post: Dec 27, 2010, 9:43 AM
  5. Postback parameter duplication after call to Render()
    By Maarten Boone in forum 1.x Help
    Replies: 4
    Last Post: Nov 08, 2010, 8:56 AM

Posting Permissions