📄 class1.vb
字号:
Imports Microsoft.VisualBasic
Imports System.Web
Public Class AppendMessage
Implements IHttpModule
Dim WithEvents _application As HttpApplication = Nothing
Public Overridable Sub Init(ByVal context As HttpApplication) _
Implements IHttpModule.Init
_application = context
End Sub
Public Overridable Sub Dispose() Implements IHttpModule.Dispose
End Sub
Public Sub context_PreSendRequestContent(ByVal sender As Object, _
ByVal e As EventArgs) Handles _application.PreSendRequestContent
'alter the outgoing content by adding a HTML comment.
Dim message As String = "<!-- This page has been post processed at " & _
System.DateTime.Now.ToString() & _
" by a custom HttpModule.-->"
_application.Context.Response.Output.Write(message)
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -