Page.Controls.Clear();
Response.Write("<font color=red>您没有登陆</font>");
Response.Write("<font color=red>您没有登陆</font>");
解决方案 »
- The type initializer for 'System.Web.UI.BaseParser' threw an exception.
- 在.NET中,用Jmail.Send("smtp.sohu.com", false) 发送邮件 问是否可以无限量发送?
- 如何查找loginview里LoggedInTemplate模版中的控件?
- jmail发送出错,看不懂是什么错File or assembly name Interop.jmail, or one of its dependencies, was not found
- 200分 求解 TabScript和PageView问题
- 关于datagrid中加入模板列,模板列使用hyperLink控件,在程序中动态给NavigateUrl属性赋值,但是为何点击不能连接到目标页??
- 请问这句SQL语句怎么写?(关于日期统计)
- 怎么实现.NET MVC EXCEL数据导入时进度条效果
- page_load()的问题
- 关于graphics
- 请教:如何在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();