Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 09, 2012 09:32 AM by Chen Yu - MSFT
0 Points
1 Post
May 05, 2012 12:14 PM|LINK
hai .i have faced this problem from the past one week,but i didn't successfull by giving a coding for that please help me for get the code
Member
164 Points
29 Posts
May 06, 2012 02:26 PM|LINK
Can't get your problem. Have some time and just describe it clearly.
How to get UserName from Backend, this can be done through sessions.
Add a Global.asax file. Look for void session_start... and code like below:
Session["Username"]="";
Now go to your code of Login Page and pass value of Username into session using below code, just before the Response.Redirect("")...
Session["Username"]=login1.Username;
Login1.Username is username which you are authenticating from SQL Table.
All-Star
21569 Points
2493 Posts
Microsoft
May 09, 2012 09:32 AM|LINK
Hi sivakrishnakodali,
Did you get the username from SQL table when he login your project? If so, you could use @John Bhatt's method to store the username.
I found a similar thread, it may help you. http://forums.asp.net/t/1565705.aspx
Thanks.
sivakrishnak...
0 Points
1 Post
how to get user name from the back end sqlserver into his account login session like gmail etc
May 05, 2012 12:14 PM|LINK
hai .i have faced this problem from the past one week,but i didn't successfull by giving a coding for that please help me for get the code
John Bhatt
Member
164 Points
29 Posts
Re: how to get user name from the back end sqlserver into his account login session like gmail et...
May 06, 2012 02:26 PM|LINK
Can't get your problem. Have some time and just describe it clearly.
How to get UserName from Backend, this can be done through sessions.
Add a Global.asax file. Look for void session_start... and code like below:
Now go to your code of Login Page and pass value of Username into session using below code, just before the Response.Redirect("")...
Login1.Username is username which you are authenticating from SQL Table.
Chen Yu - MS...
All-Star
21569 Points
2493 Posts
Microsoft
Re: how to get user name from the back end sqlserver into his account login session like gmail et...
May 09, 2012 09:32 AM|LINK
Hi sivakrishnakodali,
Did you get the username from SQL table when he login your project? If so, you could use @John Bhatt's method to store the username.
I found a similar thread, it may help you. http://forums.asp.net/t/1565705.aspx
Thanks.
Feedback to us
Develop and promote your apps in Windows Store