Ask a Question related to ASP.NET General, Design and Development.
-
Simon Storr #1
Re: Assigning events in PreRender
I have at last found a kind of solution to the problem in adding all the
conditional controls and making the unwanted controls invisible in
PreRender - this actually prevents them being rendered at all, but not sure
this is the best way of doing it? (I'm still wasting time assigning all the
events etc.)
Simon
"Simon Storr" <sstorr@sdasolutions.com> wrote in message
news:uIfI1OfSDHA.2316@tk2msftngp13.phx.gbl...catch> Is it possible to attach events to controls in the PreRender section? I am
> adding controls dynamically - dependent on events on the main form, but
> these controls in turn need their own events. Adding these conditional
> controls in the PreRender causes them to display ok but their events don't
> work :o(. The only way I've found to make the events work is to add the
> controls in PageLoad, but this is before the main form events fire - a> 22! Is there any way around it?
>
> Thanks,
>
> Simon
>
>
Simon Storr Guest
-
PreRender not being called, solution
If PreRender is not being called on a control, it means the control's Visible property is false. This can lead to an interesting situation. If you... -
PreRender not called on PostBack?
I have a situation where I am dynamically loading .ascx controls, and their pre-render is not getting called on postback but the page load is. Any... -
Should I use the PreRender event
I have several user controls where I am not using viewstate. In the OnLoad, I call functions that will take the data out of the form fields and... -
PreRender Datagrid Header
thanks , i have figured out the problem s_nagul2003@yahoo.co.in (Nagul) wrote in message news:<37e6a399.0307250241.ec325dc@posting.google.com>... -
A question about the PreRender event
Hi, I do not know if you already got an answer to this question but in order to 'wire' the PreRender event handler using VS.net you need to: 1)...



Reply With Quote

