URL Rewrite in ASP.net

Hi All

I like to know how to rewrite url for

http://www.domain.com/test.asp?code=213

To
http://www.domain.com/test.aspx?code=213

I am not able to get query string value.

I am writing url as follows

<rule name="Rule1" enabled="true">
                    <match url="^test.asp?code=([^/]*)$" />
                    <conditions logicalGrouping="MatchAll" />
                    <action type="Rewrite" url="test.aspx?code={R:1}" />
                </rule>
csofttechAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ongngochoangConnect With a Mentor Commented:
http://urlrewriter.net/ is a library can help you
0
All Courses

From novice to tech pro — start learning today.