网站登录问题? [英] website login problem?

查看:74
本文介绍了网站登录问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将登录信息传递到另一个aspx页面..



例如:用户名:印度,密码:123 ....想要显示印度所有细节到另一个aspx页面..任何人帮助我..

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

推荐答案

您可以将用户名添加到网站的会话参数中。然后,您可以访问登录ID。

不要在应用程序中传递密码。
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.


使用会话变量



例如:



string username =india;

string password =123;



在另一个页面使用会话中使用如下:



会话[用户名] =用户名;

会话[密码] =密码;
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;


关于会话的完整文章试试此链接..

http://asp.net-tutorials.com/state/sessions/ [ ^ ]
a complete articles about the session try this link..
http://asp.net-tutorials.com/state/sessions/[^]


这篇关于网站登录问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆