I have a problem with the following code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
Dim strUserInfo() As String
strUserInfo = Split(Me.Request.ServerVariables("LOGON_USER").ToString(), "\")
strCurrentUser = strUserInfo(1)
strCurrentDomain = strUserInfo(0)
Catch ex As Exception
strCurrentUser = ""
The code is always executed because IsPostback = False. The page also includes a Asp:Button. According to al awailable documentation ispostback is false only the first time the page is loaded.