Solved

Web URL to aspx variable

Posted on 2012-03-18
6
228 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

19 Experts available now in Live!

Get 1:1 Help Now