摘要: 摘自wwwsample1:sample2:sample4: 阅读全文
posted @ 2010-04-15 15:55 liangzi.net 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 利用PostBackUrltrans1.aspx<asp:Button ID="Button1" runat="server" PostBackUrl="~/test/trans2.aspx" Text="Button" />Partial Class test_trans1 Inherits System.Web.UI.Page Public data As String Prote... 阅读全文
posted @ 2010-04-15 15:42 liangzi.net 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Partial Class test_t_Compare Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub Button1_Click(ByVal sender A... 阅读全文
posted @ 2010-04-15 15:09 liangzi.net 阅读(208) 评论(0) 推荐(0) 编辑
摘要: <html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>altKey、ctrlKey和shiftKey属性的综合应用</title></head><script>function example()... 阅读全文
posted @ 2010-04-15 14:52 liangzi.net 阅读(202) 评论(0) 推荐(0) 编辑
摘要: function CPos(x, y){ this.x = x; this.y = y;}function getObjPos(ATarget){ var target = ATarget; var pos = new CPos(target.offsetLeft, target.offsetTop); var target = target.offsetParent; while (target... 阅读全文
posted @ 2010-04-15 14:48 liangzi.net 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 摘自www 阅读全文
posted @ 2010-04-15 14:42 liangzi.net 阅读(446) 评论(1) 推荐(0) 编辑
摘要: 打印某个标签内的内容:function customPrint( contentContainerId ){ var contentContainer=document.getElementById(contentContainerId); var winEx = window.open("about:blank","", "height=10,width=10",""); winEx.docu... 阅读全文
posted @ 2010-04-09 09:42 liangzi.net 阅读(193) 评论(0) 推荐(0) 编辑
摘要: example:window.open("","name1","width=100,height=200,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");showModalDialogexample:window.showModalDialog("my.htm",obj,"dialogWidth=200px;dialogH... 阅读全文
posted @ 2010-04-09 09:38 liangzi.net 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 日期格式化函数(摘自互联网):Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "s+"... 阅读全文
posted @ 2010-04-09 08:59 liangzi.net 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 之前使用ajax技术时,曾经用过ajaxpro这个组件,之后改用了jquery+IHttpHandler,但发现所有jquery的的请求都没有响应,分析后发现ajaxpro也是通过请求IHttpHandler实现ajax的,因为web.config中配置有ajaxpro的httphandlers处理项,所以以.ashx后缀的请求都被截获了,所以没有得到预期的响应。当时第一反应就是把两种不同的请求区... 阅读全文
posted @ 2010-04-07 13:53 liangzi.net 阅读(386) 评论(0) 推荐(0) 编辑