⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.asax

📁 This is a book about vb.you could learn this from this book
💻 ASAX
字号:
<%@ Import namespace="System.Diagnostics" %>

<Script language="VB" runat=server>

  Public Sub Application_OnResolveRequestCache()
  
    Response.Write("served from cache...<hr size=1>")
  
  End Sub


  Public Sub Application_OnUpdateRequestCache()
  
    WriteLog("Updating cache...")
    
  End Sub
  
  Private Sub WriteLog(message As String)
  
    Dim logname As String = "Web_Errors"

    If Not EventLog.SourceExists(logname) Then
      EventLog.CreateEventSource(logname, logname)
    End If

    Dim l As New EventLog()
    l.Source = logname
    l.WriteEntry(message, EventLogEntryType.Information)
  
  End Sub
  
</Script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -