變數 在ASP編程中,如果你遵守了下面的變數命名規則,你的代碼的可行性、可維護性將會更好:一般命名規則首碼 變數類型 例子 b or bln Boolean bSuccess c or cur Currency cAmount d or dbl Double dblQuantity dt or dat Date and Time dtDate f or flt Float fRatio l or lng Long lMilliseconds i
採集|程式 This is an ASP page, which is supposed to be opened in a new browser window, it automatically resizes to a client's resolution, displaying month view with a possibility to pick a date, which is then inserted into a
'SPString.SQLif exists (select name from sysobjects where name = 'SPROCString') drop proc SPROCStringGOCREATE PROCEDURE SPROCString @pTitle varchar(80)ASSET NOCOUNT ONSELECT *FROM TitleViewWHERE Title = @pTitle or
asp.net|cookie|session 瀏覽器的會話使用儲存在 SessionID 屬性中的唯一識別碼進行標識。會話 ID 使 ASP.NET 應用程式能夠將特定的瀏覽器與 Web 服務器上相關的會話資料和資訊相關聯。會話 ID 的值在瀏覽器和 Web 服務器間通過 Cookie 進行傳輸,如果指定了無 Cookie 會話,則通過 URL 進行傳輸。 ASP.NET 通過自動在頁的 URL 中插入唯一的會話 ID 來保持無
程式|原始碼 <B>ASP Source Code:</B><HR><%Dim objFSO, objInFile 'object variables for file accessDim strIn, strTemp 'string variables for reading and color processingDim I 'standard loop control variableDim
asp.net|web 最近ASP.NET 2.0實在沒有什麼新訊息,也沒什麼驚人動態,在沒有新聞的情況下,看來祭司只好自己創造新聞囉,今天要談的是ASP.NET 2.0的Web Part Framework。 Web Part Framework就是指Web組件,為什麼要談它呢?主要是有個小故事,有個讀者問我他想用Web Part,但可不可以不要用SQL Server資料庫?!他問的當時我小楞了一下,因為ASP.NET 2.0的東西太多了,
建立|伺服器|索引|頁面 建立ASP頁面 在ASP頁面上一切都變得非常酷。你用表單中的值來驅動對索引伺服器進行查詢的對象。整個過程是這樣的:◆ 開啟記錄集。◆ 用標準ADO 方法,一步步地走過記錄集。<%"Create a Query object, initialize it using"SetQueryFromURL, and dump the object state"set the query