Groups | Blog | Home
all groups > asp.net building controls > june 2006 >

asp.net building controls : RaisePostBackEvent fires for only one instance


Jason Barnett
6/13/2006 11:31:02 AM
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
Jason Barnett
6/14/2006 7:57:01 AM
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.

[quoted text, click to view]
AddThis Social Bookmark Button