Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 24th, 2006, 05:16 PM
Authorized User
 
Join Date: Jun 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trouble with UrlMapping in webconfig !

hi, I'm trying to map a Url such as

www.mywebsite.com/companyname

to

www.mywebsite.com/aspxpage.aspx?companyname

is there anyway of doing this? - so I would be redirecting my user to a webpage from them just typing in /companyname (so with no extensions).

I have read up on url mapping and it would seem microsoft only support a url mapping of an aspx page?


 
Old August 24th, 2006, 11:20 PM
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASP.NET does not support that natively, however a number of 3rd party tools exist that do, and I might have found one for free here:

http://pietschsoft.com/blog/post.aspx?postid=762

The link to it from the Channel 9 website is here:

http://channel9.msdn.com/ShowPost.aspx?PostID=136559

And by the way, let me know if that works, because I might need to implement that myself sometime.

Neil Timmerman
Programmer
Veris Consulting
 
Old August 25th, 2006, 07:21 AM
Authorized User
 
Join Date: Jun 2006
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thankyou for the links

I have implemented the code from that webpage to use RegEx.

It works as far as the name goes but it still requires me to use the .aspx extension.

I don't know if you know of a regular expression to help?

I have got around my problem temporarily by using Virtual Directories by setting them up in my Host's Control Panel.

 
Old August 30th, 2006, 12:47 AM
Friend of Wrox
 
Join Date: Feb 2006
Location: , , USA.
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem.

I'm not that great of a programmer, but I rock at google searching!

Neil Timmerman
Programmer
Veris Consulting




Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple CCs in webconfig contact forms JezHarvey BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 20th, 2008 02:11 PM
Declare a variable attribute in WebConfig snufse ASP.NET 2.0 Basics 2 January 12th, 2008 11:10 AM
UrlMapping AnjuSujith ASP.NET 2.0 Professional 0 November 22nd, 2007 12:49 AM
UrlMapping help! bananas ASP.NET 2.0 Basics 0 August 24th, 2006 05:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.