RaisePostBackEvent fires for only one instance

Discussion in 'ASP .Net Building Controls' started by Jason Barnett, Jun 13, 2006.

  1. I've created a web server control that should raise a ValueChanged event when
    the user changes the control's value and clicks submit (AutoPostBack is not
    desired). The control works well, until I drop another control of its class
    on the form. Then the RaisePostBackEvent fires only once (always for the
    last control on my form). I've searched other forums and found others that
    have had the same problem, but I've yet to find a solution.

    Does anyone know how I might get RaisePostBackEvent to fire for the
    appropriate control(s)?
     
    Jason Barnett, Jun 13, 2006
    #1
    1. Advertising

  2. I must be showing my lack of experience with ASP.NET web controls, because I
    just discovered that I should have implemented the IPostBackDataHandler
    interface to achieve my goal, not the IPostBackEventHandler. I'm no longer
    having a problem.

    "Jason Barnett" wrote:

    > I've created a web server control that should raise a ValueChanged event when
    > the user changes the control's value and clicks submit (AutoPostBack is not
    > desired). The control works well, until I drop another control of its class
    > on the form. Then the RaisePostBackEvent fires only once (always for the
    > last control on my form). I've searched other forums and found others that
    > have had the same problem, but I've yet to find a solution.
    >
    > Does anyone know how I might get RaisePostBackEvent to fire for the
    > appropriate control(s)?
     
    Jason Barnett, Jun 14, 2006
    #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. Lucas Tam
    Replies:
    0
    Views:
    425
    Lucas Tam
    Aug 19, 2003
  2. Karl Hungus

    RaisePostBackEvent question

    Karl Hungus, Apr 11, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    10,353
    Teemu Keiski
    Apr 12, 2004
  3. =?Utf-8?B?amRu?=

    RaisePostBackEvent Question

    =?Utf-8?B?amRu?=, May 18, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    2,932
    =?Utf-8?B?amRu?=
    May 19, 2004
  4. Sam Martin
    Replies:
    4
    Views:
    7,682
    William F. Robertson, Jr.
    Sep 15, 2004
  5. Replies:
    3
    Views:
    1,009
Loading...

Share This Page