国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

[ASP]精華代碼

2024-05-04 10:59:06
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:

<%
  ' -- Loader.asp --
  ' -- version 1.5.2
  ' -- last updated 12/5/2002
  '
  ' Faisal Khan
  ' faisal@stardeveloper.com
  ' www.stardeveloper.com
  ' Class for handling binary uploads

  Class Loader
    Private dict

    Private Sub Class_Initialize
      Set dict = Server.CreateObject("Scripting.Dictionary")
    End Sub

    Private Sub Class_Terminate
      If IsObject(intDict) Then
        intDict.RemoveAll
        Set intDict = Nothing
      End If
      If IsObject(dict) Then
        dict.RemoveAll
        Set dict = Nothing
      End If
    End Sub

    Public Property Get Count
      Count = dict.Count
    End Property

    Public Sub Initialize
      If Request.TotalBytes > 0 Then
        Dim binData
          binData = Request.BinaryRead(Request.TotalBytes)
          getData binData
      End If
    End Sub

    Public Function getFileData(name)
      If dict.Exists(name) Then
        getFileData = dict(name).Item("Value")
        Else
        getFileData = ""
      End If
    End Function

    Public Function getValue(name)
      Dim gv
      If dict.Exists(name) Then
        gv = CStr(dict(name).Item("Value"))

        gv = Left(gv,Len(gv)-2)
        getValue = gv
      Else
        getValue = ""
      End If
    End Function
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 桂东县| 抚顺县| 綦江县| 浪卡子县| 兰西县| 衡东县| 太和县| 宁蒗| 奉新县| 高雄市| 新余市| 醴陵市| 漠河县| 沂南县| 尼玛县| 沧州市| 江油市| 翁源县| 新化县| 阿克陶县| 九江县| 乌拉特后旗| 新巴尔虎右旗| 马关县| 商南县| 罗田县| 孝感市| 黄大仙区| 苍溪县| 容城县| 察雅县| 临城县| 瓦房店市| 青浦区| 景宁| 莒南县| 达州市| 高碑店市| 广河县| 师宗县| 永福县|