摘要:
Cookies传值时编码,要进行解码操作.才会显示出本来的值.lblEmail.Text = HttpContext.Current.Server.UrlDecode(HttpContext.Current.Request.Cookies["UserInfo"].Values["Email"].ToString()); 阅读全文
摘要:
在GridView下进行编辑操作,根据某项指标判断该行是否可以进行编辑.protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { string strID = this.GridView1.DataKeys[e.NewEditIndex].Value.ToString(); string strsql = "SELECT IsUsed FROM tableaccount where ID='" + strID + "'"; string St 阅读全文