CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> .NET

 Display Username

Print topic Send  topic

Author Message

Posts: 23
Posted: 04/19/2004, 7:26 PM

How would I create a page using to display the below:

Hello <username>

Where <username> is the Windows user account accessing the page.

View profile  Send private message

Posts: 4
Posted: 04/19/2004, 11:53 PM


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.


View profile  Send private message
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

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.