具體使用方法
首先nfig的配置
<?xml version=
<section name=
</configSections>
<RewriterConfig> <Rules> <RewriterRule> <LookFor>~/ListCategories\
<SendTo>~/Default
<LookFor>~/(\d+)l</LookFor> <SendTo>~/Cover
</RewriterConfig> <system
<add type=
<compilation debug=
</configuration>
主要配置的代碼是這些
然後Default
Default
<%@ Page Language=
<!DOCTYPE html PUBLIC
<html xmlns=
<title>無標題頁</title></head><body> <form id=
<div>
<a >ListCategories
<a >l</a> </div> </form></body><
/html>Cover
<%@ Page Language=
<%@ Register TagPrefix=
<!DOCTYPE html PUBLIC
<html xmlns=
<title>Cover</title></head><body> <skm:form id=
<div> Cover頁面 <h
<asp:Button ID=
</div>
</skm:form></body></html>Cover
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
protected void Page_Load(object sender
{
if (Request
{
Response
}
else
{
int id = Convert
}
}
}
還要去對iis設置
這樣的話偽靜態就可以用了
C:\WINDOWS\Microsoft
浏覽Default
ListCategories
具體使用方法
首先nfig的配置
<?xml version=
<section name=
</configSections> <RewriterConfig> <Rules> <RewriterRule> <LookFor>~/ListCategories\
<SendTo>~/Default
<LookFor>~/(\d+)l</LookFor> <SendTo>~/Cover
</RewriterRule> </Rules> </RewriterConfig>
<system
</httpModules> <compilation debug=
</system
</configuration>
主要配置的代碼是這些
然後Default
Default
<%@ Page Language=
<!DOCTYPE html PUBLIC
<html xmlns=
<title>無標題頁</title></head><body> <form id=
<div>
<a >ListCategories
<a >l</a> </div> </form></body>
</html>Cover
<%@ Page Language=
<%@ Register TagPrefix=
<!DOCTYPE html PUBLIC
<html xmlns=
<title>Cover</title></head><body>
<skm:form id=
</h
<asp:Button ID=
</div>
</skm:form>
</body>
</html>Cover
using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
using System
{
protected void Page_Load(object sender
{
if
(
Request
{
Response
}
else
{
int id = Convert
}
}
}
還要去對iis設置
這樣的話偽靜態就可以用了
C:\WINDOWS\Microsoft
浏覽Default
ListCategories
From:http://tw.wingwit.com/Article/program/net/201311/11490.html