数据集合
来源:互联网 发布:淘宝刷销量团队 编辑:程序博客网 时间:2024/05/22 06:13
DataSet result =
new
DataSet();
//定义DataSet对象,是一种存在内存里的数据集合
result =
new
Class1().hsggetdata(sql);
//调用Class1这个类里的hsggetdata()函数给result赋值。
if
(result !=
null
)
//如果result不为空
{
if
(result.Tables[0].Rows.Count > 0)
//如果result里的第一张表的行数大于0
{
Session[
"username"
] = TextBox1.Text.ToString().Trim();
//就给Session对象里的username赋值。
if
(cx.Text.ToString().Trim() ==
"管理员"
)
//判断cx这个的显示文字
{
Session[
"cx"
] = result.Tables[0].Rows[0][
"cx"
].ToString().Trim();
}
else
{
Session[
"cx"
] = cx.Text.ToString().Trim();
}
Response.Redirect(
"main.aspx"
);
}
else
{
//执行javascript代码,在页面弹框显示这句话。。。。。
Response.Write(
"<script>javascript:alert('对不起,用户名或密码不正确,或您的帐号未经审核!');</script>"
);
}
}
else
{
Response.Write(
"<script>javascript:alert('对不起,系统错误,请不要越权操作!');</script>"
);
}
}
protected
void
Button2_Click(
object
sender, EventArgs e)
{
//点击button2就执行Button2_Click这个函数,让跳转到yonghuzhuce_add.aspx这个页面
Response.Redirect(
"yonghuzhuce_add.aspx"
);
}
}
}
else
{
Response.Write(
"<script>javascript:alert('对不起,用户名或密码不正确,或您的帐号未经审核!');</script>"
);
}
}
else
{
Response.Write(
"<script>javascript:alert('对不起,系统错误,请不要越权操作!');</script>"
);
}
}
protected
void
Button2_Click(
object
sender, EventArgs e)
{
Response.Redirect(
"yonghuzhuce_add.aspx"
);
}
}
0 0
- 数据集合
- 数据集合
- 数据集合
- 数据集合
- 数据集合使用方法
- 数据挖掘网络资源集合
- 合并两个数据集合
- 数据导入集合
- ORACLE 数据集合
- 日历数据集合
- 回头看看数据集合
- 浅谈数据集合
- 数据集合小结
- java数据集合
- 开放数据集合分享
- java 数据集合
- 大数据工具集合
- Intent传递集合数据
- com.android.cts.devicepolicy.ManagedProfileTest -- testAppLinks
- Java 互联网工程师要具备哪些技能或技术?
- 安卓读取assets目录
- 第四周项目6-建循环双链表算法库
- maven的一些配置
- 数据集合
- java+Oracle Sqlload 大数据
- 在Android Studio中为jar添加source源码
- 仿ios垂直滚动选择
- 浅析HTTPS与SSL原理
- JS全国城市三级联动
- 《C缺陷与陷阱》读书总结
- 心理学报
- 四周实现爬虫系统(2)---爬取租房信息