Solved

Web URL to aspx variable

Posted on 2012-03-18
6
232 Views
Last Modified: 2012-03-28
Hi guys,

I have a website where I want the user to type in something like this:

www.mywebsite.com/90820 

... and the page automatically forward to:

www.mywebsite.com/webpage.aspx?Variable=90820

Does anyone know who to do this?  Preferably in ASP.NET VB.

Thanks :)
0
Comment
Question by:jamie77777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Assisted Solution

by:Rainverse
Rainverse earned 500 total points
ID: 37735919
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 37735962
URL rewriting is the best method to use.   However, there is an alternative in simply adding a redirect script on an index page under an actual folder.  http://support.microsoft.com/kb/312063
0
 
LVL 16

Expert Comment

by:Rose Babu
ID: 37737300
If you are using Win 2003 server then install urlrewriter module as described in http://urlrewriter.net/index.php/support/installation/windows-server-2003

Then in your web.config file add rewrite rule

<rewrite url="^/(.+)$" to="/webpage.aspx?Variable==$1" processing="stop" />

http://urlrewriter.net/index.php/support/configuration
http://urlrewriter.net/index.php/support/reference/actions/rewrite

To get the Intelligencia.UrlRewriter.dll file

get the source from https://github.com/sethyates/urlrewriter/downloads
extract the source and build it to get dll.(find the dll in \bin\Debug folder)

Try this.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 16

Expert Comment

by:Rose Babu
ID: 37756802
any luck?
0
 

Accepted Solution

by:
jamie77777 earned 0 total points
ID: 37758770
Thanks for all your help guys... eventually went with this :)

http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/
0
 

Author Closing Comment

by:jamie77777
ID: 37775746
Complete
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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