摘要: 站点用户统计是每一个站点比有得功能,但是很少有人实现在线用户统计得绝对精确或者说是相对精确,基于Web得原理,服务器不会主动知道用户通过关闭浏览器离开站点,这时候只能依靠服务器端变量Session得过期来判断用户是否离开,但用户浏览器是可以知道自己何时关闭得,代码也非常简单 如下: function body_onunload() { if(window.event.clientX14 ... 阅读全文
posted @ 2006-04-12 19:21 Robin Zhang 阅读(3330) 评论(11) 推荐(0) 编辑
摘要: 1、hidden变量 确认页面:if (Request.Params["Test"] != null){ Request.Params["Test"];} 2、地址栏传递:Server.Transfer(“xxx.aspx?id=1”);window.open(“xxx.aspx?id=1”,”目标窗口的名称”) xxx.aspx:if (Request.QueryString["... 阅读全文
posted @ 2006-04-12 19:19 Robin Zhang 阅读(2532) 评论(0) 推荐(0) 编辑
摘要: 1public static string StripHtmlXmlTags(string content) 2 { 3 return Regex.Replace(content, "]+>", "", RegexOptions.IgnoreCase | RegexOptions.Compiled); 4 } 5 6 去除html标... 阅读全文
posted @ 2006-04-12 12:45 Robin Zhang 阅读(909) 评论(2) 推荐(0) 编辑
摘要: 1public static string FormatUbb(string text) 2 { 3 4 text=Regex.Replace(text,"\\[br\\]","",RegexOptions.IgnoreCase); 5 /**//*title*/ 6 text=Reg... 阅读全文
posted @ 2006-04-12 12:41 Robin Zhang 阅读(677) 评论(1) 推荐(0) 编辑
摘要: 1public static int WeekOfTheYear() 2 { 3 //获取 4 CultureInfo myCI = new CultureInfo("zh-CN"); 5 System.Globalization.Calendar myCal = myCI.Calendar;... 阅读全文
posted @ 2006-04-12 12:37 Robin Zhang 阅读(4498) 评论(4) 推荐(0) 编辑
摘要: style="cursor:hand"在ie里面可以显示手形光标,但在firefo中无效,style="cursor:pointer"在ie和firefox中均有效! 阅读全文
posted @ 2006-04-12 11:19 Robin Zhang 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 由于网络中断或者误操作等,造成vss项目与服务器断开绑定得时候,临床表现为文件得check-in全部消失,如何进行重新绑定file-source control -change source control-connect运行完毕,项目就重新绑定了! 阅读全文
posted @ 2006-04-12 10:25 Robin Zhang 阅读(2147) 评论(1) 推荐(0) 编辑