05 2011 档案
javascript 日期处理(注意事项)
摘要:javascript的日期加减functionTimeCom(dateValue){varnewCom=newDate(dateValue);this.year=newCom.getYear();this.month=newCom.getMonth()+1;this.day=newCom.getDate();this.hour=newCom.getHours();this.minute=newCom.getMinutes();this.second=newCom.getSeconds();this.msecond=newCom.getMilliseconds();this.week=newCo 阅读全文
posted @ 2011-05-27 10:23 lorgine 阅读(276) 评论(0) 推荐(0)
(诡异事件)iframe标签后面的alert不执行
摘要:今天做项目的过程中,发现一个非常奇怪的事情。iframe标签后面的js 不执行?把代码贴出来,看看有没有大牛碰到这种情况。谢谢。<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Untitled Page</title></head><body> <script type="text/javascript"> alert(2324); </script> <iframe src=" 阅读全文
posted @ 2011-05-24 16:37 lorgine 阅读(3268) 评论(5) 推荐(0)
获取控件生成的html
摘要:在很多时候,我们需要直接获取到GridView等服务器控件生成的HTML代码,例如导出Excel,或者使用Ajax进行局部刷新时。 假若你使用Ajax Pro要局部更新一个GridView,可以尝试直接返回GridView生成的Html代码。 Asp.net的服务器控件,都有一个RenderControl方法,使用控件的这个方法,我们可以很方便的得到该控件生成的Html代码,但现实和想角往往是有差距的。在我得到GridView的过程中遇到了两个问题。得到GridView生成的Html Code:///<summary> ///用来做例子中的数据源 ///</summary&g 阅读全文
posted @ 2011-05-12 23:36 lorgine 阅读(1658) 评论(0) 推荐(0)