上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 参考:http://bbs.blueidea.com/viewthread.php?tid=1906314比较简单的方法:删掉:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">然后:<ht... 阅读全文
posted @ 2008-09-24 13:47 zhangsir 阅读(5545) 评论(0) 推荐(1) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--一什么是url重写URL重写是截取传入Web请求并自动将请求重定向到其他URL的过程。比如浏览器发来请求hostname/101.aspx,服务器自动将这个请求中定向为http://hostname/li... 阅读全文
posted @ 2008-09-23 16:16 zhangsir 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 网页可见区域宽:document.body.clientWidth 网页可见区域高:document.body.clientHeight 网页可见区域宽:document.body.offsetWidth (包括边线的宽) 网页可见区域高:document.body.offsetHeight (包括边线的宽) 网页正文全文宽:document.body.scrollWidth 网页正文全文高:do... 阅读全文
posted @ 2008-09-22 17:08 zhangsir 阅读(1961) 评论(0) 推荐(0) 编辑
摘要: 返回制定页码的数据集: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/**//// /// 返回数据集 /// /// /// public DataSet GetData(string sql,string strconn) {... 阅读全文
posted @ 2008-08-21 15:12 zhangsir 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 一:checkbox全选以及反选:[代码]二:上传文件时显示缩略图[代码] 阅读全文
posted @ 2008-08-11 18:07 zhangsir 阅读(288) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2008-08-05 14:58 zhangsir 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 一、初始化 ·当页面被提交请求第一个方法永远是构造函数。您可以在构造函数里面初始一些自定义属性或对象,不过这时候因为页面还没有被完全初始化所以多少会有些限制。特别地,您需要使用HttpContext对象。当前可以使用的对象包括QueryString, Form以及Cookies集合,还有Cache对象。注意:在构造函数里是不允许使用Session的。 ·下一个将执行的方法是AddParse... 阅读全文
posted @ 2008-07-25 18:07 zhangsir 阅读(65) 评论(0) 推荐(0) 编辑
摘要: usingSystem.Text.RegularExpressions;///<summary>///去除HTML标记///</summary>///<paramname="NoHTML">包括HTML的源码</param>///<returns>已经去除后的文字</returns>publicstaticstringNoHT... 阅读全文
posted @ 2008-07-24 10:38 zhangsir 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 一个项目需要动态处理客户端页面中图片的宽度,防止页面被过宽的图片撑变形。过程就不叙说了。最终代码如下:[代码]参考资料:<script> var image = new Image(); image.src = 'http://www.baidu.com/img/logo.gif'; image.onreadystatechange=function(){ if (image.read... 阅读全文
posted @ 2008-07-19 17:59 zhangsir 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: ceil函数 ceil函数的作用是求不小于给定实数的最小整数。 ceil(2)=ceil(1.2)=cei(1.5)=2.00 使用该函数需要包含头文件<math.h>,该函数返回值为浮点型Run-Time Library Referenceceil, ceilfCalculates the ceiling of a value.double ceil( double x );flo... 阅读全文
posted @ 2008-07-14 16:33 zhangsir 阅读(2006) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页