<% Function DBC2SBC(Str, flag) rem 全形半形轉換函式 rem flag=-1時進行半形轉全形 rem flag=0時進行半形全形互轉 rem flag=1時進行全形轉半形 Dim i, sStr If Len(Str)<= 0 Then Exit Function DBC2SBC = "" For i = 1 To Len(Str) sStr = Asc(Mid(Str, i, 1)) Select Case flag Case -1 If
' 判斷髮言是否來自外部function ChkPost() dim server_v1,server_v2 chkpost=false server_v1=Cstr(Request.ServerVariables("HTTP_REFERER")) server_v2=Cstr(Request.ServerVariables("SERVER_NAME")) if mid(server_v1,8,len(server_v2))<>server_v2
版本:1.3官方網站:http://asptemplate.sourceforge.net/變數的定義: {{變數名}}1、首先調用模板的類2、聲明新的模板變數,並建立dim tset t = New ASPTemplate3、設定模板存放路徑,如果不設定則為預設的 "templates/"T.SetTemplatesDir(相對路徑)4、設定要使用的檔案檔案,這個檔案將從先前設好的路徑中調用t.SetTemplateFile
早上來到公司後發現機器使用以前的密碼不能登陸,於是請同事把administrator使用者的密碼清空.系統是進去了,可是卻引出了另外一個問題----ASPNET使用者被誤刪! 開啟以前項目在啟動並執行時候出現了錯誤,在事件檢視器中找到了如下兩則錯誤:aspnet_wp.exe could not be launched because the username and/or password supplied in the processModel section of
From: http://blogs.worldnomads.com.au/matthewb/archive/2004/01/12/194.aspxIts suprising how many people are attempting to do team development with ASP.NET, or even just .NET, and have not even known about nor read the Team Development with Visual
緩衝的作用相信大家都很清楚,我就不多說了。大家可以看看這篇文章: ASP.NET Micro Caching: Benefits of a One-Second Cache 。 另外,也推薦大家閱讀這篇文章: Caching Architecture Guide for .NET Framework Applications 。 1. asp.net 緩衝功能的不足 在 .net framework 中,我們用到緩衝最多的地方應該就是使用 asp.net 中的快取服務(