<% 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
物件導向是現今程式設計語言的潮流,不過,ASP對物件導向的支援可是寒磣地很.現在感覺ASP的類也不過是一堆函數而已.不過,在學校時沒有學過物件導向的語言,我對物件導向的認識仍然是從ASP開始的.記下我所寫的第一個ASP類,權做紀念若有ASP初學者也可以做個參考Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 <% 2 class show_
轉自:http://social.msdn.microsoft.com/Forums/zh-TW/1511/thread/2142d892-be3a-4726-9df4-df68dae1d76d您可以參考下列做法:1. 在SL中:Imports System.Windows.Browser <ScriptableType()> _Partial Public Class Page Inherits UserControl Public Sub New()