<%'功能:FSO刪除檔案'來源:http://jorkin.reallydo.com/article.asp?id=484'需要Path函數:http://jorkin.reallydo.com/article.asp?id=401Public Function Del(ByVal sFileName) On Error Resume Next Del = False sFileName = Path(sFileName) Dim oFSO Set
ASP.NET Session的使用當中我們會遇到很多的問題,那麼這裡我們來談下經常出現的一些常用ASP.NET Session的理解:ASP.NET Session的七點認識之一 對於實值型別的變數,Session中儲存的是實值型別的拷貝Session["__test0"] =1; int i = (int)Session["__test0"]+1; int j = (int)Session["__test0"]; 結果i=2,j=1ASP.NET
1、<%=%> 裡面放的變數名,如:<p>Welcome to Beginning ASP.NET 3.5 on <%= DateTime.Now.ToString() %></p>輸出結果為:Welcome to BeginningASP.NET 3.5 on 2009-11-10 15:53:08這樣就可以直接調用背景代碼DateTime.Now.我們還可以再後台代碼聲明一個全域變數 public string
前台頁面<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Blog_calendar.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD>
<%'功能:多功能日期格式化函數'來源:http://jorkin.reallydo.com/article.asp?id=477Function FormatDate(sDateTime, sReallyDo) Dim sJorkin sJorkin = GetLocale() If Not IsDate(sDateTime) Then sDateTime = Now() sDateTime = CDate(sDateTime) Select Case
<%'功能:刪除二維數組中的iColumn列上值為sValue的行,當iColumn為-1時刪除第sValue行'來源:http://jorkin.reallydo.com/article.asp?id=483Function DelArray2(aArray, iColumn, sValue, bCompare) If Not IsArray(aArray) Then Exit Function Dim i, j, k, iUBound1,