2007年5月15日

摘要: 问题: 我们在asp结合javascrip写页面时候,经常要从数据库里用asp返回一些数据,再用window.open函数弹出新的窗口。 比如: response.write "" & " " &"-["& rs("photoname") &"]"& "" 然而,实际运行时候,在点了这个图片后,弹出了窗口却在后面留下一个窗口,并且显示[object] 真是莫名其妙... ...解决办法:在wi... 阅读全文

posted @ 2007-05-15 12:03 ant-boss 阅读(690) 评论(0) 推荐(0)

2007年5月8日

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre... 阅读全文

posted @ 2007-05-08 09:50 ant-boss 阅读(180) 评论(0) 推荐(0)

2007年4月29日

摘要: 在使用RegularExpressionValidator验证控件时的验证功能及其验证表达式介绍如下:只能输入数字:“^[0-9]*$”只能输入n位的数字:“^\d{n}$”只能输入至少n位数字:“^\d{n,}$”只能输入m-n位的数字:“^\d{m,n}$”只能输入零和非零开头的数字:“^(0|[1-9][0-9]*)$”只能输入有两位小数的正实数:“^[0-9]+(.[0-9]{2})?$”... 阅读全文

posted @ 2007-04-29 10:37 ant-boss 阅读(222) 评论(0) 推荐(0)

2007年4月28日

摘要: protected void Button1_Click(object sender, EventArgs e) { ClientScriptManager cs = this.ClientScript; cs.RegisterArrayDeclaration("Hello", "1, 2, 3"); cs.RegisterClientScriptBlock(this.GetType(), ... 阅读全文

posted @ 2007-04-28 17:23 ant-boss 阅读(172) 评论(0) 推荐(0)

2007年4月27日

摘要: 第一个是微软的一个小东西,利用这个能够很轻松的掌握网页的DOM结构,对应那些结构比较复制的网页分析很有特效. iedevtoolbar下载地址如下: http://www.cnblogs.com/Files/JustinYoung/iedevtoolbar.rar 第二个是httpwatchpro,这个工具主要功能是监视http的数据,但是它也能让你看到相关网页或者样式表文件的内容. ... 阅读全文

posted @ 2007-04-27 22:35 ant-boss 阅读(204) 评论(0) 推荐(0)