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

  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. 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. Aaron
    Replies:
    6
    Views:
    1,330
    Aaron
    Sep 6, 2004
  2. vatech1993
    Replies:
    4
    Views:
    5,883
    =?Utf-8?B?U8Opcmdpbw==?=
    Dec 11, 2004
  3. Don
    Replies:
    3
    Views:
    5,682
    Karl Seguin
    Mar 11, 2005
  4. =?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,765
    =?Utf-8?B?RGV2ZWxvcGVyX1NvZnR3YXJl?=
    Nov 28, 2005
  5. Majeti Lakshmi Sreenivasulu

    Dynamic User Controls Event Handling Problem

    Majeti Lakshmi Sreenivasulu, Nov 11, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    219
    Majeti Lakshmi Sreenivasulu
    Nov 11, 2003
  6. Majeti

    Dynamic User Controls Event Handling

    Majeti, Nov 11, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    212
    Teemu Keiski
    Nov 13, 2003
  7. Frank
    Replies:
    2
    Views:
    556
    Victor Garcia Aprea [MVP]
    Nov 26, 2003
  8. Fabrizio
    Replies:
    5
    Views:
    448
    Alessandro Zifiglio
    Feb 24, 2004
Loading...