Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Web URL to aspx variable

Posted on 2012-03-18
6
Medium Priority
?
237 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 2000 total points
ID: 37735919
0
 
LVL 54

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
Independent Software Vendors: 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

Technology Partners: 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!

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

609 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