Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 1st, 2010, 05:46 PM
Registered User
 
Join Date: May 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile ? Server-Side Redirects

Hello,

Page 266, show an example of a Server-Side Redirect:

http://www.domain.com/cars/Volvo/v70/R

I am still unsure how to create pretty URLs like this.

I hope to use this info to create Profile pages (www.domain.com/username)

I will be using SQL Server 2008 with this and EF.


Also, I really enjoy this book. I bought your last book, but I think this book is even better. I would enjoy reading more books by you, on this subject.
 
Old May 1st, 2010, 06:50 PM
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,

Good to hear you like the book so much.

With regard to the pretty URLs, you have at least two options:

1. ASP.NET MVC. Quite different from ASP.NET Web Forms, but an interesting technology.
http://www.wrox.com/WileyCDA/WroxTit...47043399X.html
http://www.wrox.com/WileyCDA/WroxTit...470384611.html

2. Use ASP.NET Routing. For more info, check:
http://msdn.microsoft.com/en-us/library/cc668201.aspx
http://www.google.nl/#hl=nl&source=hp&q=asp.net+routing

3. Do "poor man's routing" You could create a handler in Global.asax that intercepts the incoming URL, looks at the part after the domain name and then uses Server.Transfer to transfer to a new page. Not as clean as routing, so i'd look into that if I were you.

Cheers,

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Two Client Side vs Server Side issues Milo Classic ASP Professional 5 May 25th, 2004 02:47 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





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