Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 24th, 2006, 06: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?


  #2 (permalink)  
Old August 25th, 2006, 12:20 AM
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
  #3 (permalink)  
Old August 25th, 2006, 08: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.

  #4 (permalink)  
Old August 30th, 2006, 01: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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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 06:14 PM



All times are GMT -4. The time now is 11:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.