Ask a Question related to ASP.NET Building Controls, Design and Development.
-
keith #1
Page_Load called more than once for user control - newbie question
Hi,
I have a page with a user control as header, which in turn has a user
control drop down list.
When I run the page in debug with a break on the page load events for the
page, on the header control, and the drop down list.
I hit the breaks in this order
1) Page
2) Header
3) Header
4) Drop down
For both hits on the Header, IsPostBack is false.
I would have guessed that having the sub-user control drop down was causing
the second firing of the Page_Load in the header, but as it's Page_Load
occurs afterwards, I just don't know.
I looked at my page to see if there were 2 references to the Header, but in
the Html there is only the register statement and the one that places it on
the page.
There is also a dim protected with events for it in the code behind.
It's not a big problem, but when I tried to add a second user control to the
Header, it would crash after the second Page_Load, with the dissassembly
showing nop and a blank second column, which I assume means a null pointer.
Any enlightenment, or even pointing to an appropriate web page would be
welcome.
keith Guest
-
User Control Populate Form after Log On - newbie question
Hi, I have a user control that contains a login element, textboxes for username and password, and a button to submit, which appears in the header... -
Access User Control value during Page_Load
ASP.NET - C# (User Control) I have a drop-down as usercontrol. In the user control's Page_Init , the drop down gets populated. The... -
Page_Load called twice in child user control--AutoEventWireup=false
Hello I have an application which has a user control on an ASPx page. This user control programmatically adds another user control to its Control... -
Know in user control page_load if an user control event is going to be fired
Hi all, i have built a user control that shows a map and let the user zoom in, out, usual stuff. Putting this object in a webform the user can... -
User control newbie question - pls help
I have a user control with a label and a method. The webform should call the method on the user control and populate the label. I am getting object...



Reply With Quote

