谁有web登陆页面的全部代码
答案:2 悬赏:40 手机版
解决时间 2021-01-19 18:52
- 提问者网友:夢醒日落
- 2021-01-19 04:53
谁有web登陆页面的全部代码
最佳答案
- 五星知识达人网友:洒脱疯子
- 2021-01-19 06:05
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string name = context.Request["name"].ToString();
string pwd = context.Request["pwd"].ToString();
string sql = "select * from userInfo";
DataTable dt = SqlHelper.GetTable(sql);
bool flag = true;
foreach (DataRow row in dt.Rows)
{
if (row["use_emp_no"].ToString() == name && row["use_pwd"].ToString() == pwd)
{
flag = true;
}
else
{
flag = false;
}
}
if (flag == true)
{
}
else
{
context.Response.Write("登陆失败!");
}
}
{
context.Response.ContentType = "text/plain";
string name = context.Request["name"].ToString();
string pwd = context.Request["pwd"].ToString();
string sql = "select * from userInfo";
DataTable dt = SqlHelper.GetTable(sql);
bool flag = true;
foreach (DataRow row in dt.Rows)
{
if (row["use_emp_no"].ToString() == name && row["use_pwd"].ToString() == pwd)
{
flag = true;
}
else
{
flag = false;
}
}
if (flag == true)
{
}
else
{
context.Response.Write("登陆失败!");
}
}
全部回答
- 1楼网友:人间朝暮
- 2021-01-19 07:34
51aspx上一大锥
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯