Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > PreRender Disables the User controls events

Reply
Thread Tools

PreRender Disables the User controls events

 
 
=?Utf-8?B?Sm9obiBOaW5hbg==?=
Guest
Posts: n/a
 
      09-24-2004
I have creating dynamic usercontrols in Page_PreRender event. It works fine.
But Inside usercontrol i have a Button. PreRender event disable the
usercontrol Button click. What can i do to overcome this?

Help is greatly Appreciated.

Thanks
John

 
Reply With Quote
 
 
 
 
Martin Dechev
Guest
Posts: n/a
 
      09-24-2004
Hi, John,

It is too late for the event to get fired. Add the controls in the Page_Init
(preferably) or Page_Load handlers.

Hope this helps
Martin
"John Ninan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have creating dynamic usercontrols in Page_PreRender event. It works

fine.
> But Inside usercontrol i have a Button. PreRender event disable the
> usercontrol Button click. What can i do to overcome this?
>
> Help is greatly Appreciated.
>
> Thanks
> John
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens between events Load and PreRender. ASP.NET bug? mortb ASP .Net 3 11-30-2004 11:49 PM
events, prerender and LoadControl() =?Utf-8?B?Tmlrb2xhag==?= ASP .Net 1 09-27-2004 03:46 PM
Smartnavigation disables ActiveX Events (OWC) Kevin Ortman ASP .Net 0 12-05-2003 04:28 AM
Re: Assigning events in PreRender Simon Storr ASP .Net 0 07-14-2003 10:47 AM
Enabled = False disables controls on all pages. Why? Bisser Milanov ASP .Net Web Controls 0 07-13-2003 11:53 AM



Advertisments