📄 global.asax
字号:
<Script Runat="Server">
Sub Application_BeginRequest
Dim strUsername
Dim strCustomPath As String
If INSTR( Request.Path.ToLower, "custom" ) = 0 Then
strUsername = Request.Path.ToLower
strUsername = strUsername.Replace( ".aspx", "" )
strUsername = strUsername.Remove( _
0, _
InstrRev( strUsername, "/" ) )
If Request.ApplicationPath = "/" Then
strCustomPath = _
String.Format( _
"/custom/default.aspx?username={0}", _
strUsername )
Else
strCustomPath = _
String.Format( _
"{0}/custom/default.aspx?username={1}", _
Request.ApplicationPath, _
strUsername )
End If
Context.RewritePath( strCustomPath )
End If
End Sub
</Script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -