CameronF
Posts: 23
|
Posted: 04/19/2004, 7:26 PM |
|
How would I create a page using vb.net to display the below:
Hello <username>
Where <username> is the Windows user account accessing the page.
Thanks!
|
|
|
chucha
Posts: 4
|
Posted: 04/19/2004, 11:53 PM |
|
Hi
You should place label on the page, and in the BeforeShow event of the label enter following code
<LabelName>.Text = "Hello" + Page.User.Identity.Name
But make sure that the Integrated Windows authentification in IIS settings is enabled, because in case of the Anonymous authentification user will always authentificated under Anonymous account.
Stan
|
|
|
LV
|
Posted: 05/21/2004, 6:04 AM |
|
If you are using the form security you can retrieve the user's login by creating a label anywhere on the form and insert this code to before show to the label.
YourLableName.Text = DBUtility.UserLogin
|
|
|
|