How can i handle post back event of the control that is added on the OnPreRender () method

  • Thread starter Thread starter Umut Tezduyar
  • Start date Start date
U

Umut Tezduyar

Because of the fact that, handling events method (
IPostBackEventHandler.RaisePorstBackEvent method) is prior to OnPreRender
method, i cannot handle the events of the controls that i am adding on the
OnPreRender method. Is there a way for that. Can i manually tell asp.net
page to check again if there is control that is post backing to the server.

ex:

Load
IPostBackEventHandler.RaisePostBackEvent ( in this phase parameter is
selected, par = par1 or par = par2)
PreRender (Button is added according to the parameter selected o
RaisePostBackEvent, either par1 or par2)

After this phase, i cannot handle the event of the button added on pre
render phase
 
Hi Umut,

I've viewing the post and also have found the one you posted in the
microsoft.public.dotnet.framework.aspnet.webcontrols

newsgroup, I've posted my replies in that thread. I'd appreciate if you
have a look there. In addition, if you feel it convenient that we continue
to discuss in that thread, please feel free to followup there. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top