Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string res = PermControl.CheckUserType(Session["usertype"], 0);

            if (res != "")
            {
                Response.Write(res);
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string res = PermControl.CheckUserType(Session["usertype"], 0);

            if (res != "")
            {
                Response.Write(res);
            }

            this.userid.Text   = Session["userid"] == null ? "" : Session["userid"].ToString();
            this.username.Text = Session["username"] == null ? "" : Session["username"].ToString();
            this.usersex.Text  = Session["usersex"] == null ? "" : Session["usersex"].ToString();
            this.userredp.Text = Session["userredp"] == null ? "" : Session["userredp"].ToString();
        }
Exemplo n.º 3
0
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string res = PermControl.CheckUserType(Session["usertype"], 3);

            if (res != "")
            {
                Response.Write(res);
            }
            else
            {
                res = MyUtils.AddBag(Session["userid"].ToString(), GridView1.SelectedRow.Cells[0].Text);
                this.addinfo.Text = res;
            }
        }
Exemplo n.º 4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            string res = PermControl.CheckUserType(Session["usertype"], 3);

            if (res != "")
            {
                Response.Write(res);
            }
            else
            {
                res = MyUtils.AddBag(Session["userid"].ToString(), Request.QueryString["id"].ToString());
                this.addinfo.Text = res;
            }
        }