2009年7月7日
摘要: GridView控件有双向排序功能.以前很少用到.今天使用到了.发现功能很强大.故在些标记,以备忘!效果好下:前台代码:<asp:GridView ID="UserGridList" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnRowDataBound="UserGridList_RowDataBound" CellPadding="4" ForeColor="#333333& 阅读全文
posted @ 2009-07-07 17:33 Renn.Erann 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 某字段默认值为空,后来插入了时间格式.现在要要该项值为空.使用了这样的语句:备忘!update users set InterTime=\N where ID='211' 阅读全文
posted @ 2009-07-07 17:29 Renn.Erann 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: Jmail组件发送邮件代码:protected void btnSendMail_Click(object sender, EventArgs e) { //初始化数据 string strsql = "SELECT * FROM sysstate"; DataTable dt=DtDB.GetDataTable(strsql); string MailSubject = dt.Rows[0]["MailTitle"].ToString(); string MailBody = dt.Rows[0]["MailBody"].ToStr 阅读全文
posted @ 2009-07-07 09:51 Renn.Erann 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 在GV中常用到RowDataBound事件和写法.记下以备忘.if (e.Row.RowType == DataControlRowType.DataRow) { //鼠标划过样式 e.Row.Attributes.Add("onmouseover", "lastColor=this.style.backgroundColor;this.style.backgroundColor='#95b8e9';"); e.Row.Attributes.Add("onmouseout", "this.style.back 阅读全文
posted @ 2009-07-07 08:22 Renn.Erann 阅读(4377) 评论(1) 推荐(0) 编辑