Page.Controls.Clear();
Response.Write("<font color=red>您没有登陆</font>");
Response.Write("<font color=red>您没有登陆</font>");
解决方案 »
- Web问题盘点?
- 关于ajax的,有点难度
- 关于DataGrid的使用问题
- access文件放在虚拟目录下的,没有加network service用户的写权限就只能做select操作,怎么回事怎么解决,速救
- web.config如何保护一个目录及目录下的所有文件,包括没有注册未asp.net的文件?
- asp中生成的Session("username"),如何在asp.net中取
- asp.net入门问题!!
- 有同时了解JAVA跟ASP.NET的朋友,请进..
- 请教:已生成WEB安装工程,可是我想把数据库的安装也包含进去,我该怎么做?
- 使用layui 前台上传excel文档,会把excel自动转换成json ,我的问题是把转换完的json通过$.ajax() 提交给后台,如何实现
- 请教:如何在asp.net实现对不同的用户设置管理权限????????(最好举例说明)
- ASP.net如何实现单击按钮后进入到下一个页面?
else Redirect()
{
cn = new SqlConnection(ConfigurationSettings.AppSettings["ds"]);
string strSQL="select * from user_info where user_id="+UserName.Text;
cm = new SqlCommand(strSQL,cn);
cn.Open();
dr = cm.ExecuteReader();
if(dr.Read())
{
if(UserPwd.Text==dr["pwd"].ToString())
{
Response.Write("<script>window.alert('密码正确!');</script>");
}
else
{
Response.Write("<script>window.alert('密码不正确!');</script>");
}
}
else
{
Response.Write("<script>window.alert('无此用户!');</script>");
}
}
Response.End();
Response.End();