Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Page Load fired 3 times Web user control is embedded in a custom control

Reply
Thread Tools

Page Load fired 3 times Web user control is embedded in a custom control

 
 
Thomas Ekegren
Guest
Posts: n/a
 
      09-03-2003
Hi,

I have built a custom control that build a table with 3 cells in it. The
custom control is designed to add all child controls to cell#2, which it
does like it is supposed to.
However if I add a web user control inside the custom control, the page_load
event of the web user control is fired three times! Does anybody know how to
avoid that the page_load event is fired three times?

code example:
....
<Custom:CustomTable id="ct1" runat="server" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td><aspanel id="pnl" runat="server">
...
</aspanel>
</td>
</tr>
</Custom:CustomTable>

.... HERE THE PAGE_LOAD EVENT OF THE WEB USER CONTROL
<CustomControls:GalleryThumbs> IS FIRED THREE TIMES
<Custom:CustomTable id="ct1" runat="server" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<CustomControls:GalleryThumbs runat="server"
id="test"></CustomControls:GalleryThumbs>
</td>
</tr>
</table>
</td>
</tr>
</Custom:CustomTable>

Any help would be highly appreciated!

/Thomas


 
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
Custom event from a custom web control is fired twice SammyBar ASP .Net Web Controls 1 07-21-2009 07:16 PM
Custom event from a custom web control is fired twice SammyBar ASP .Net 1 07-21-2009 07:16 PM
Embedded <divs> with events: How to prevent the parent div's eventfrom being fired when the embedded div's event is fired? Num GG Javascript 2 11-17-2008 08:56 PM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM
Know in user control page_load if an user control event is going to be fired Fabrizio ASP .Net Building Controls 5 02-24-2004 02:07 PM



Advertisments