摘要:
站點用戶統計是每一個站點比有得功能,但是很少有人實現在線用戶統計得絕對精確或者說是相對精確,基于Web得原理,服務器不會主動知道用戶通過關閉瀏覽器離開站點,這時候只能依靠服務器端變量Session得過期來判斷用戶是否離開,但用戶瀏覽器是可以知道自己何時關閉得,代碼也非常簡單 如下: function body_onunload() { if(window.event.clientX14 ... 閱讀全文
posted @ 2006-04-12 19:21
Robin Zhang
閱讀(3348)
評論(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
閱讀(2629)
評論(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
閱讀(924)
評論(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
閱讀(693)
評論(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
閱讀(4515)
評論(4)
推薦(0)
摘要:
style="cursor:hand"在ie里面可以顯示手形光標,但在firefo中無效,style="cursor:pointer"在ie和firefox中均有效! 閱讀全文
posted @ 2006-04-12 11:19
Robin Zhang
閱讀(710)
評論(0)
推薦(0)
摘要:
由于網絡中斷或者誤操作等,造成vss項目與服務器斷開綁定得時候,臨床表現為文件得check-in全部消失,如何進行重新綁定file-source control -change source control-connect運行完畢,項目就重新綁定了! 閱讀全文
posted @ 2006-04-12 10:25
Robin Zhang
閱讀(2161)
評論(1)
推薦(0)

浙公網安備 33010602011771號