Solved

URL Rewrite in ASP.net

Posted on 2009-07-16
3
560 Views
Last Modified: 2013-12-09
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>
0
Comment
Question by:csofttech
3 Comments
 
LVL 7

Accepted Solution

by:
Phateon earned 125 total points
Comment Utility
0
 
LVL 3

Assisted Solution

by:ongngochoang
ongngochoang earned 125 total points
Comment Utility
http://urlrewriter.net/ is a library can help you
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now