Solved

Web URL to aspx variable

Posted on 2012-03-18
6
227 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
6 Comments
 
LVL 5

Assisted Solution

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

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

21 Experts available now in Live!

Get 1:1 Help Now