Dynamic user control Event Handling (VS.NET Ent 2003)

Discussion in 'ASP .Net Web Controls' started by Developer_Software, Nov 28, 2005.

  1. Thanks in advance to anyone who can help :)

    I've got a placeholder control WITHIN A USER CONTROL that has its contents
    dynamically added and removed at runtime by a regular .aspx page.

    At runtime, the placeholder control adds a dropdownlist where I would like
    it to redirect the user to a different page dependent on the selection they
    make from the dropdownlist.

    I've tried writing the delegate and the event handler both in the
    UserControl's code behind page (placing the delegate in the Page_Load) AND
    the .aspx page the user control shows up in..and IT DOES NOT RESPOND to the
    event

    BTW, in the .aspx page the dynamic dropdownlist is created in the OnInit
    method of the page.

    Is this proper? I've read so many articles and I'm not sure as to why it is
    not responding. In this situation, should the event be coded in the
    usercontrol or the page it will show in?
    Developer_Software, Nov 28, 2005
    #1
    1. Advertising

  2. Developer_Software

    Guest

    Make sure that you are creating the event handler for the event
    regardless of a post back, it should work then
    , Nov 29, 2005
    #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. Aaron
    Replies:
    6
    Views:
    1,223
    Aaron
    Sep 6, 2004
  2. =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=

    dynamic user control event handling (VS.NET 2003 Ent)

    =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=, Nov 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,612
    =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=
    Nov 28, 2005
  3. Jarod

    When will be Ent 2.0 ?

    Jarod, Jan 13, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    333
    Jarod
    Jan 13, 2006
  4. =?ISO-8859-1?Q?Ren=E9_Kjellerup?=

    About Dlls in Borland C++builder 6 Ent

    =?ISO-8859-1?Q?Ren=E9_Kjellerup?=, Feb 15, 2004, in forum: C++
    Replies:
    4
    Views:
    2,195
    dasan_in
    Mar 22, 2011
  5. Mukesh
    Replies:
    4
    Views:
    525
    Walter Wang [MSFT]
    Oct 9, 2006
Loading...

Share This Page