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......
Loading

Sanjeeb LenkaPosted Jul 4, 2013, 3:00 AM
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
Harshal VadnerePosted Jul 4, 2013, 3:06 AM
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.
}
selva kumarPosted Jul 4, 2013, 3:06 AM