PreRender Disables the User controls events

Discussion in 'ASP .Net' started by =?Utf-8?B?Sm9obiBOaW5hbg==?=, Sep 24, 2004.

  1. I have creating dynamic usercontrols in Page_PreRender event. It works fine.
    But Inside usercontrol i have a Button. PreRender event disable the
    usercontrol Button click. What can i do to overcome this?

    Help is greatly Appreciated.

    Thanks
    John
     
    =?Utf-8?B?Sm9obiBOaW5hbg==?=, Sep 24, 2004
    #1
    1. Advertisements

  2. Hi, John,

    It is too late for the event to get fired. Add the controls in the Page_Init
    (preferably) or Page_Load handlers.

    Hope this helps
    Martin
    "John Ninan" <> wrote in message
    news:...
    > I have creating dynamic usercontrols in Page_PreRender event. It works

    fine.
    > But Inside usercontrol i have a Button. PreRender event disable the
    > usercontrol Button click. What can i do to overcome this?
    >
    > Help is greatly Appreciated.
    >
    > Thanks
    > John
    >
     
    Martin Dechev, Sep 24, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Ortman
    Replies:
    0
    Views:
    592
    Kevin Ortman
    Dec 5, 2003
  2. =?Utf-8?B?Tmlrb2xhag==?=

    events, prerender and LoadControl()

    =?Utf-8?B?Tmlrb2xhag==?=, Sep 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    888
    Karl Seguin
    Sep 27, 2004
  3. mortb
    Replies:
    3
    Views:
    5,642
    bruce barker
    Nov 30, 2004
  4. Florian Doyon

    OnClientClick 'return' disables validation

    Florian Doyon, Sep 15, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    3,662
    Florian Doyon
    Sep 15, 2005
  5. fredd00
    Replies:
    0
    Views:
    614
    fredd00
    Sep 29, 2005
  6. Bisser Milanov

    Enabled = False disables controls on all pages. Why?

    Bisser Milanov, Jul 13, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    228
    Bisser Milanov
    Jul 13, 2003
  7. ERichardson

    Using PreRender Causes Events to Stop

    ERichardson, Feb 10, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    203
    ERichardson
    Feb 10, 2004
  8. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    674
    Chris
    Aug 30, 2005
Loading...