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;
            }
        }
Beispiel #2
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;
            }
        }