Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 1st, 2010, 05:46 PM
Registered User
 
Join Date: May 2010
Location: Spokane Valley, WA
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.
Reply With Quote
  #2 (permalink)  
Old May 1st, 2010, 06:50 PM
Imar's Avatar
Wrox Author
Points: 72,019, Level: 100
Points: 72,019, Level: 100 Points: 72,019, Level: 100 Points: 72,019, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,075
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 11:59 AM.


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