CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Display Username

Print topic Send  topic

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

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


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 http://support.yessoftware.com.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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