Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
How to pass a login information to another aspx page..

eg : username:india,password:123....wanted to display india all details to another aspx page..any one help me..
Posted

You can add the user name to the web site's session parameter. You can then access the login id.
Do not pass the password across the application.
 
Share this answer
 
use session variable

Example:

string username="india";
string password="123";

to use these on another page use session as follows:

Session["username"]=username;
Session["password"]=password;
 
Share this answer
 
Comments
[no name] 15-Feb-14 0:53am    
How to connect sql table in thiz query?
a complete articles about the session try this link..
http://asp.net-tutorials.com/state/sessions/[^]
 
Share this answer
 
There are many methods.

Explore How to: Pass Values Between ASP.NET Web Pages[^].
 
Share this answer
 
v2
 
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