📄 global.asax
字号:
<%@ Import Namespace="System.IO" %>
<Script Language="C#" Runat="Server">
void Application_BeginRequest(object sender, EventArgs e) {
string strPageOwner;
string strCurrentPath;
string strCustomPath;
strCurrentPath = Request.Path.ToLower();
if (strCurrentPath.IndexOf( "/site/" ) == -1
&& strCurrentPath.IndexOf( "userpage.aspx" ) == -1
&& strCurrentPath.IndexOf( "default.aspx" ) == -1) {
strCustomPath = String.Format("~/userpage.aspx?pageowner={0}",Path.GetFileNameWithoutExtension( Request.Path ) );
Context.RewritePath( strCustomPath );
}
}
</Script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -