By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,432 Members | 795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,432 IT Pros & Developers. It's quick & easy.

Page Load Twice?

P: n/a
Hi all,

I have the following code in a User Control.
For some reason it appears as if the page load function is executed twice as
the 'UserLoggedIn' function
results are being outputted twice.

If this is the case, i suspect it is something i have missed about a pages
life cycle.
Can anyone point in the right direction???

Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load

'variable declaration
Dim Security As New myObj.Security()

'determine if user is logged in
If (Context.User.Identity.IsAuthenticated) Then

'build navigation if not already built
If Not (blnNavigationBuilt) Then

If(Security.IsDirector() Or Security.IsAdmin()) Then


End If

'display user logged in message

End If

End If

End Sub
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Is that the autoevent wireup?

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.