Author: mayerl | Posted on: 11/10/2010 9:14:08 AM | Views : 1074

Morning,


I've been scouring the forumsa and tutorials and I think I'm close. I'm trying to collect the username ofthe user connecting to the webapage (this is an intranet app). My confusion is where you put what. On the default.aspx.vb I have a proteced sub page load and I have this code in it:
</p><p>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' Get the Logged on user
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' Make sure Anonymous is not checked in IIS Manager
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' otherwise this may be empty
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim strLogonUsr As String
&nbsp;&nbsp ...

Go to the complete details ...