protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { if (Session["userid"] != null) { string res = MyUtils.BorrowBook(Session["userid"].ToString(), GridView1.SelectedRow.Cells[0].Text); this.borinfo.Text = res; } GridViewBind(); }
protected void Button2_Click(object sender, EventArgs e) { string res = PermControl.CheckUserType(Session["usertype"], 3); if (res != "") { Response.Write(res); } else { res = MyUtils.BorrowBook(Session["userid"].ToString(), Request.QueryString["id"].ToString()); this.addinfo.Text = res; } }