上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
  2007年7月31日
摘要: //strIn 为 输入的Email地址字符串变量 返回为true或falsereturn Regex.IsMatch(strIn, @"^([\w-\.]+)@(?!-)((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$",RegexOptions.Compiled|... 阅读全文
posted @ 2007-07-31 17:43 Gary.han 阅读(726) 评论(3) 推荐(0)
  2007年7月18日
摘要: 获取或设置DataGrid绑定列中的Radio的值Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1、模板列中加入客户端控件与事件:2、在页面上添加一个服务器端的Hidden id="hidRadValue"3、然后写个JS:function setR... 阅读全文
posted @ 2007-07-18 16:33 Gary.han 阅读(425) 评论(1) 推荐(0)
  2007年7月16日
摘要: 可以先用HTML在后台与绑定的DataSet数据集组合成一个HTML内容,然后用:this.Page.RegisterStartupScript("key","");来打印当前页面。 阅读全文
posted @ 2007-07-16 17:17 Gary.han 阅读(528) 评论(0) 推荐(0)
  2007年7月11日
摘要: 将以某单字符分隔的字段值,循环插入表Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->declare @strChatRooms nvarchar(1000) --自定义参数,含有','符号的值declare @UserID i... 阅读全文
posted @ 2007-07-11 17:40 Gary.han 阅读(766) 评论(0) 推荐(0)
  2007年6月13日
摘要: 可以使用 Visual Sniffer(百度搜索) 来捕捉提交的数据信息:1. 访问你需要站外提交的页面,比如 CSDN 登陆页 http://www.csdn.net/member/UserLogin.aspx2. 填写好需要的资料,比如用户名和密码,3. 打开 Visual Sniffer, 点“开始拦截”4. 在访问的页面中提交。5. 等提交成功之后,在 Visual Sniffer 中“停... 阅读全文
posted @ 2007-06-13 21:09 Gary.han 阅读(6320) 评论(3) 推荐(0)
  2007年5月30日
摘要: C#下载网页中的文件Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//获取页面内容可以用 System.Net.WebRequest myRequest = System.Net.WebRequest.Create("h... 阅读全文
posted @ 2007-05-30 15:48 Gary.han 阅读(838) 评论(1) 推荐(0)
摘要: 注意:在xp_cmdshell后面的SQL语句不允许换行。 SQL语句生成EXCEL文件Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->导入/导出 生成Excel --从Excel文件中,导入数据到SQL数据库中,很简单,直接用下面的语句:/**//*... 阅读全文
posted @ 2007-05-30 15:38 Gary.han 阅读(1221) 评论(3) 推荐(0)
  2007年5月9日
摘要: 前台页面要输入下载地址和另存路径Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private void BtnDown_Click(object sender, System.EventArgs e) { ... 阅读全文
posted @ 2007-05-09 09:45 Gary.han 阅读(377) 评论(0) 推荐(0)
  2007年4月12日
摘要: onunload关闭页面Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->onbeforeunload 在 onunload 之前执行function Close(){ var ua = navigator.userAgent; var ie ... 阅读全文
posted @ 2007-04-12 16:29 Gary.han 阅读(310) 评论(0) 推荐(0)
  2007年4月6日
摘要: 按字节长度拆分内容Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//计算发送信息的次数(条数,按140字节)int iContentCount = (int)Math.Ceiling((double)ASCIIEncoding.Default.Get... 阅读全文
posted @ 2007-04-06 15:44 Gary.han 阅读(659) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页