Events doesn't fire up for buttons in a web usercontrol - Help

Discussion in 'ASP .Net' started by KK, Jan 22, 2005.

  1. KK

    KK Guest

    Hi



    I have a main page called lobby.aspx.
    lobby have the main menu. below that
    I loads web user controls (ascx) according
    to the selected main menu (into a placeholder).

    Some of my ascx, in turn loads other ascx.
    So, for example, when I click a button in lobby.aspx,
    I load ascx A into lobby.aspx placeholder, and ascx A
    loads ascx B in to ascx A's placeholder control.

    The problem is, button events (for submit buttons) in
    ascx A or B doesn't get fired.
    Once clicked, lobby.aspx page_load
    event gets executed. it doesn't go to ascx files
    code in A or B click events when required.

    Then I created a options.aspx page.
    from lobby.aspx, when the [options] clicked
    I do a Server.Transfer (options.aspx) In the
    page_load event of options.aspx, I load ascx A.
    and ascx B into A. Now, button events for ascx
    A works ,but events for ascx B doesn't work!!!!
    If I load ascx into a seperate aspx they also work!!!!

    what am I doing wrong? how to avoid it?

    rgds
    KK
     
    KK, Jan 22, 2005
    #1
    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. =?Utf-8?B?S2lt?=

    Dropdownlist in usercontrol doesn't fire

    =?Utf-8?B?S2lt?=, Mar 19, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    1,946
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Mar 21, 2006
  2. Andrew2
    Replies:
    1
    Views:
    754
    Andrew2
    Jan 25, 2008
  3. KK
    Replies:
    0
    Views:
    229
  4. Andrés Giraldo

    Adding buttons to a datagrid doesn't fire its events

    Andrés Giraldo, Sep 19, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    249
    Andrés Giraldo
    Sep 19, 2003
  5. Q Dennis

    UserControl - Doesn't fire child events

    Q Dennis, Sep 20, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    186
    Anthony Hunter
    Sep 20, 2004
  6. KK
    Replies:
    0
    Views:
    238
  7. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    675
    Chris
    Aug 30, 2005
  8. Amelyan
    Replies:
    0
    Views:
    275
    Amelyan
    Nov 4, 2005
Loading...