470,855 Members | 1,208 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

User Control process page load and Page_init multiple times?

I have a user control that i need to do some processing in a fuction when it
is first loaded. I have tried to add my code to the page_load and page_init
fuctions. when i run a debugger, i notice that the function is entered
multiple times.

I've tried the following function definitions in

Public Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Me.Init

Public Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Me.Load

any suggestions? in my current page, the usercontrol is included on a page
that has a masterpage applied to in in asp.net 2.0.
Apr 12 '06 #1
0 1854

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kris van der Mast | last post: by
4 posts views Thread by Tim::.. | last post: by
2 posts views Thread by Tim::.. | last post: by
3 posts views Thread by Tim::.. | last post: by
8 posts views Thread by mark.norgate | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.