此程式只能將首頁轉成靜態!(真對一個頁面) 將createhtml.asp檔案上傳到 你的空間存放首頁檔案(index.asp)的目錄下錄入網址直接開啟createhtml.asp接提示操作就可以了如果沒有轉成功可將createhtml.asp更名試一下(如:改成z.asp)錄入網址直接開啟z.asp 本檔案可以隨便改名不影響運行複製代碼 代碼如下:<% if request.QueryString("action")="ok" then dim kk,url,http,reurl
ACCESS 查詢資料庫類型 http://www.zengke.com/product.asp?sort_id=24 and exists (select * from sysobjects) 查詢表admin頁面返回正常顯示為有,錯誤為無。 http://www.zengke.com//product.asp?sort_id=24 and exists (select * from admin) 查詢admin表中的項admin /product.asp?sort_id=24 and
1.請在sql server 中建一資料庫 name:house 在house中運行下列指令碼 if exists (select * from sysobjects where id = object_id(N´[dbo].[City]´) and OBJECTPROPERTY(id, N´IsUserTable´) = 1) drop table [dbo].[City] GO if exists (select * from sysobjects where id = object_id(
用於產生sitemap.xml檔案的東西,利於google等搜尋引擎的抓取。複製代碼 代碼如下:<% Server.ScriptTimeout=50000 ' sitemap_gen.asp ' A simple script to automatically produce sitemaps for a webserver, in the Google Sitemap Protocol (GSP) ' by Francesco Passantino '
在本篇檔案中,我們將討論編程人員在使用ASP.NET開發應用程式時需要注意的10個技巧,這些技巧涉及從預設的控制項、表單名的改變到StringBuilder類的使用,有助於編程人員能夠儘快地適應.NET環境。 1、在使用Visual Studio .NET時,除直接或非引用的對象外,不要使用預設的名字。 .NET帶來的好處之一是所有的原始碼和設定檔都是純文字檔案,能夠使用Notepad或WordPad等任意的文字編輯器進行編輯。如果不願意,我們並非一定要使用Visual Studio
複製代碼 代碼如下:<% '建立檔案夾函數 Function CreateFolder(strFolder)'參數為相對路徑 '首選判斷要建立的檔案夾是否已經存在 Dim strTestFolder,objFSO strTestFolder = Server.Mappath(strFolder) Set objFSO = CreateObject("Scripting.FileSystemObject") '檢查檔案夾是否存在 If not
數組的定義 Dim MyArray MyArray = Array(1,5,123,12,98) 可擴充數組 Dim MyArray() for i = 0 to 10 ReDim Preserve MyArray(i) MyArray(i)=i next 將一個字串分割並返回分割結果的數組 Dim MyArray MyArray = Split(tempcnt,chr(13)&chr(10)) For I = Lbound(MyArray) to Ubound(MyArray)