Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 June 21st, 2011, 07:01 PM
Registered User
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default general url questions

I have two questions, and I am sorry that I do not know the necessary syntax to find the answers via searching.

1. How does one prefix a url? i.e "p2p.wrox.com"

With what I am currently working on, the main site "xxxxx.com" will show statistics of sub sites that you can link to "xxxx.xxxxx.com" depending on the link selected.

2. The sub sites will be revolving around data driven user forms (I believe that is the way to say it). Where as, user is presented with data that he/she can search through by selecting categories -- great example would be a TCG card, they have categories that define them and would help with searching -- and by selecting any number of them and the url will change appropriately per action in the url above. This will allow them to share that url with others so they may see what they have chosen.

I would appreciate any input or information, positive and negative.
Thank you for your time!
 
Old June 22nd, 2011, 04:13 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

1) Your domain registrar typically does this for you. Many of the companies that register domains for you also have an on-line control panel that you can use to create your own sub domains (such as p2p and www for the wrox.com domain) and point them to an IP address. The web server then needs the correct bindings so each site listens to one or more domain names. Some documentation on bindings: http://technet.microsoft.com/en-us/l...92(WS.10).aspx

2) You lost me at "the sub sites"....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 22nd, 2011, 04:48 PM
Registered User
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the speedy reply Imar.

1. You got me pointed in the right direction, I should be able to find what I need now.


2. An example would be a portion of mobafire.com

Specifically

"http://www.mobafire.com/league-of-legends/mastery-tree-planner"

and once you change the value it posts back and returns in your url

"http://www.mobafire.com/league-of-legends/mastery-tree-planner#&tree1=1-0-0-0-0-0-0-0-0-0-0-0-0-0&tree2=0-0-0-0-0-0-0-0-0-0-0-0-0-0&tree3=0-0-0-0-0-0-0-0-0-0-0-0-0-0-0"

What I'm trying to ask, is there anyway to implicitly set this up without having to explicitly define every possibility? Allowing for the possibilities without having to have a page for every single one. If you could just point me in the right direction that would be wonderful!

-- Hopefully that clears that last part up a tid bit.
 
Old June 22nd, 2011, 04:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Hopefully that clears that last part up a tid bit
Not really. Based on what would you generate these values?

You can make use of various methods and propertis of the Request class to read those values. For example, for a request like Default.aspx?tree=123, the code:

Request.QueryString["tree"]

in the page Default.aspx would give you 123.

Does that help?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 27th, 2011, 01:33 AM
Registered User
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are right on the money! That cleared absolutely everything up, thank you very much for taking the time to answer my vague questions!





Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirect based on given URL somnath.kartic VS.NET 2002/2003 1 August 2nd, 2012 08:21 AM
General XSLT Questions in the XSLT Forum jminatel BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 0 March 31st, 2008 07:50 PM
General Application Questions. RPG SEARCH ASP.NET 1.x and 2.0 Application Design 2 March 2nd, 2005 12:38 PM
extract URL from Favorites (.URL Files) PhilHawks VB.NET 2002/2003 Basics 2 November 2nd, 2004 04:35 AM





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