RoleUser.aspx.cs
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:2k
源码类别:

Email客户端

开发平台:

Visual C++

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using background;
  12. public partial class Manage_queryuser : System.Web.UI.Page
  13. {
  14.     Role ro = new Role();
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.     }
  18.     protected void changebtn_Click(object sender, EventArgs e)
  19.     {
  20.         String name = UserLis.SelectedValue;
  21.         if (name.Length == 0)
  22.         {
  23.             Response.Write("<script>alert('请选择数据');</script>");
  24.         }
  25.         else {
  26.             bool yes=ro.popedom(name);
  27.             if (yes)
  28.             {
  29.                 Response.Write("<script>location='RoleUser.aspx';</script>");
  30.             }
  31.             else {
  32.                 Response.Write("<script>location='RoleUser.aspx';</script>");
  33.             }
  34.             //Response.Write("<script>alert('" + name + "');</script>");
  35.         }
  36.     }
  37.     protected void Button1_Click(object sender, EventArgs e)
  38.     {
  39.         String name = adminLis.SelectedValue;
  40.         if (name.Length == 0)
  41.         {
  42.             Response.Write("<script>alert('请选择数据');</script>");
  43.         }
  44.         else {
  45.             if (name == "admin")
  46.             {
  47.                 Response.Write("<script>alert('非法操作');</script>");
  48.             }
  49.             else { 
  50.             
  51.             }
  52.         }
  53.     }
  54. }