Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
I have loginname tool to display the username of the user after they log in.
I want to capture the username and insert into a table automatically when submiting a particular form in my page.

Any ideas?
Posted
Comments
senguptaamlan 25-Aug-10 2:58am    
whats the login mechanism you are using, is it form based or windows based ???

Two solutions:
1. If you know where your tool get the information, then you get write the logic in your page and achieve them directly

2. If you don't know how to get the information, it means you need to get them from the tool. Then you can try some unmanaged hook code, which would work like the spy tool in C++
 
Share this answer
 
I got it:

C#
protected void Page_Load(object sender, System.EventArgs e)
             {
                 string getname = Page.User.Identity.Name;
                 TextBox1.Text = getname;
             }


thanks for the guide guys.
 
Share this answer
 
Read the documentation for the control you're using, and consider writing yuor own controls if you want full control over them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900