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. Advertising

  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. Advertising

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:
    503
    Kevin Ortman
    Dec 5, 2003
  2. Florian Doyon

    OnClientClick 'return' disables validation

    Florian Doyon, Sep 15, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    3,454
    Florian Doyon
    Sep 15, 2005
  3. fredd00
    Replies:
    0
    Views:
    511
    fredd00
    Sep 29, 2005
  4. Robert
    Replies:
    0
    Views:
    432
    Robert
    Aug 30, 2007
  5. Bisser Milanov

    Enabled = False disables controls on all pages. Why?

    Bisser Milanov, Jul 13, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    121
    Bisser Milanov
    Jul 13, 2003
Loading...

Share This Page