Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 May 27th, 2008, 02:48 PM
Registered User
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default username.website.us

I am building a political website for a county political party. They want the visitors to be able to access a member's information by typing the username in front of url like using a subdomain. @johnsmith.carolinapolitics.us

I know how to build a detail page that can pull the data by using username as parameter. How do i get the page to recognize the username in the webaddress. i am using expression web and visual web developer 2005. aspnet 2.0

Thanks for any help


Old May 27th, 2008, 09:20 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

You need to configure your domain name DNS settings to allow *.carolinapolitics.us to point to your web site. Then you can just parse the incoming URL to figure out the name. However, this has some shortcomings. You aren't going to be able to host this on an IIS environment that has many websites as each website is identified and "routed" to the appropriate application starting point in IIS by means of host headers, i.e. the URL. I don't think you can have IIS handle a situation like this. Following typical implementations of this it would probably be much easier to handle it this way:


It's not quite as elegant but it will be much easier to support and deploy.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
Get Username and system name in C# JelfMaria VS.NET 2002/2003 2 July 7th, 2005 06:01 AM
Username Changes Ben Horne Forum and Wrox.com Feedback 2 March 12th, 2004 12:20 PM
Getting a Client Username jenty_c Pro JSP 0 February 5th, 2004 02:09 AM

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