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

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
 
S

Steven Cheng[MSFT]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top