RoleUser.aspx.cs
资源名称:yjal.rar [点击查看]
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:2k
源码类别:
Email客户端
开发平台:
Visual C++
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using background;
- public partial class Manage_queryuser : System.Web.UI.Page
- {
- Role ro = new Role();
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void changebtn_Click(object sender, EventArgs e)
- {
- String name = UserLis.SelectedValue;
- if (name.Length == 0)
- {
- Response.Write("<script>alert('请选择数据');</script>");
- }
- else {
- bool yes=ro.popedom(name);
- if (yes)
- {
- Response.Write("<script>location='RoleUser.aspx';</script>");
- }
- else {
- Response.Write("<script>location='RoleUser.aspx';</script>");
- }
- //Response.Write("<script>alert('" + name + "');</script>");
- }
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- String name = adminLis.SelectedValue;
- if (name.Length == 0)
- {
- Response.Write("<script>alert('请选择数据');</script>");
- }
- else {
- if (name == "admin")
- {
- Response.Write("<script>alert('非法操作');</script>");
- }
- else {
- }
- }
- }
- }