Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Control Event Handlers aren't called when used in PlaceHolder

Reply
Thread Tools

Control Event Handlers aren't called when used in PlaceHolder

 
 
Craig
Guest
Posts: n/a
 
      03-29-2006
I have a custom control that I'm adding to a Placeholder, when I click on a
button within my control, it should fire an event handler. This works fine
if I simply add the control to a page, but if I add the control dynamically
to a placeholder, the event handlers don't get called.
 
Reply With Quote
 
 
 
 
sam
Guest
Posts: n/a
 
      03-29-2006
Are you adding the control in page init or page load? You have to add
it during one of those two phases.

Post code if ur question is still not answered.

 
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
Why is a button Click event also called when a textbox TextChanged event is called??? S_K ASP .Net 6 11-08-2007 07:44 PM
Event handlers called multiple times Tumurbaatar S. ASP .Net Datagrid Control 0 11-11-2005 10:26 AM
Event handlers called twice, or not at all Andy Baldwin ASP .Net Building Controls 1 10-29-2004 12:49 AM
Build control in a placeholder or like a placeholder nail ASP .Net Building Controls 0 09-10-2004 07:57 PM
datagrid event handlers not being called in IIS 6 Edward Bills ASP .Net 0 08-25-2004 07:01 PM



Advertisments