|
A question about UrlRewriter with multiple parameters
Conversion of a single parameter has been successful
Original address: ViewNews.aspx? NewsID = 1
Converted to: ViewNews, 1.aspx
Now multi-parameters won't work
such as:
Original address NewsList.aspx? NewsTypeA = 1&NewsTypeB = 2
Convert to NewsList, 1,2.aspx
The system prompts "The input string is malformed"
How should it be achieved? My code is as follows:
<Rules>
<RewriterRule>
<LookFor> ~ / NewsList, (\d +) *, (\d +) *. Aspx </ LookFor>
<SendTo> ~ / NewsList.aspx? NewsTypeA = $ 1 ^ NewsTypeB = $ 1 </ SendTo>
</ RewriterRule>
</ Rules> |
|