HighTechTalks DotNet Forums  

RaisePostBackEvent fires for only one instance

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss RaisePostBackEvent fires for only one instance in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Jason Barnett
 
Posts: n/a

Default RaisePostBackEvent fires for only one instance - 06-13-2006 , 02:31 PM






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)?

Reply With Quote
  #2  
Old   
Jason Barnett
 
Posts: n/a

Default RE: RaisePostBackEvent fires for only one instance - 06-14-2006 , 10:57 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.

"Jason Barnett" wrote:

Quote:
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)?

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.