, IIS7 Classic Integrated Pipeline Mode. Integrated Pipeline :
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRewrite" type="MyLibrary.UrlRewrite" />
</modules>
</system.webServer>
, , , , IIS7 Classic/Integrated IIS5/6 ( , ), - , IIS, :
<system.web>
<httpModules>
<add name="UrlRewrite" type="MyLibrary.UrlRewrite" />
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRewrite" type="MyLibrary.UrlRewrite" />
</modules>
</system.webServer>
runAllManagedModulesForAllRequest = "true", , HttpModule , .aspx,.ashx,.asmx .., .NET framework.
, URL- ( ), context.RewritePath(string) .
, , application.Request.Path "" , , , :
http://www.domain.com/robertp
:
http://www.domain.com/Profiles/profile.aspx?AccountID=59
context.Response.Redirect(), context.RewritePath() :
string UserURL = "~/Profiles/profile.aspx?AccountID=" + account.AccountID.ToString();
context.RewritePath(UserURL);
... !!
, URL-, , profiles.aspx?AccountID=59, robertp .
, IIS7, - . Dev- IIS6 IIS5, , , , , robertp , HttpModule , , .NET ISAPI.
, .