sisibest

导航

2013年1月6日

window.showModalDialog刷新父窗口和本窗口的方法及注意

摘要: 在点击window.showModalDialog窗口的链接的时候会打开新窗口,想要阻止打开新窗口,需要在窗口页面中的html和body之间 加入: <base target="_self" />即可 阅读全文

posted @ 2013-01-06 15:47 sisibest 阅读(126) 评论(0) 推荐(0)

输入正确的邮箱地址

摘要: <td> <asp:TextBox ID="txtEmail" runat="server" Width="160px"></asp:TextBox> <asp:RegularExpressionValidator ID="revEmail" runat="server" ErrorMessage="请输入正确的邮箱地址!" Display="None" ValidationGroup="1" 阅读全文

posted @ 2013-01-06 14:07 sisibest 阅读(552) 评论(0) 推荐(0)

密码 必须大于六位

摘要: function Validator_CheckPassword(source, args) { var result = true; var password = $("#<%=txtPassword.ClientID %>").val(); if ($.trim(password) != '') { if ($.trim(password).length < 6) { result = false; } } args.IsValid = result; }<td> <asp:TextBox ID="txtPa 阅读全文

posted @ 2013-01-06 14:02 sisibest 阅读(557) 评论(0) 推荐(0)

SQL 拿到一天内的数据

摘要: CreateDate>=startDate&& CreateDate<=endDateif (!string.IsNullOrEmpty(startDate)) { sbWhere.Append(" and DATEDIFF(day,CreateDate,'"+startDate+"')<=0"); } if (!string.IsNullOrEmpty(endDate)) { sbWhere.Append(" and DATEDIFF(day,CreateDate,'"+en 阅读全文

posted @ 2013-01-06 11:39 sisibest 阅读(221) 评论(0) 推荐(0)