Hi i m developing web application...i have two pages ..one page for user Log in..if i was entered username and password next page should be open and displays msg
(eg Welcome + Username...)
How do i get username ...can any one give idea......
How to display user name?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 3, 2013, 11:00 PM EDT
in login page:
create a session after successful login
Session["Username"]=tstusername.Text;
in the success page:
lblMsg.Text="Welcome"+Session["Username"].ToString();
if any problem reply
selva kumarRank #2,987 · 483 reputationPosted Jul 3, 2013, 11:06 PM EDT
Harshal Vadnere90 reputationPosted Jul 3, 2013, 11:06 PM EDT
For e.g
First.aspx:
session["UserName"]=usename;
Secound.aspx:
page_load()
{
label.text=session["UserName"]; // put a label on top side of a page.
}