2009年7月6日
摘要: Cookies传值时编码,要进行解码操作.才会显示出本来的值.lblEmail.Text = HttpContext.Current.Server.UrlDecode(HttpContext.Current.Request.Cookies["UserInfo"].Values["Email"].ToString()); 阅读全文
posted @ 2009-07-06 17:22 Renn.Erann 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 在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 阅读全文
posted @ 2009-07-06 17:15 Renn.Erann 阅读(235) 评论(0) 推荐(0) 编辑