Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 August 19th, 2008, 03:49 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

chris,

one further point (and hopefully no offense to either yourself or anyone else on here), i notice on your website (http://Professionalaspnet.com) that any code examples are in vb.net. is the book planned to document the code in both c# and vb.net. this is important to me (that it's in c#) as c# (in my case) is the only .net language that i both use and also the only one that my main 'bread and butter' client authorises for use on it's business applications. not saying that this is 'right' in any way, just giving you a heads up.

jimi

http://www.originaltalent.com
 
Old August 19th, 2008, 06:35 AM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Hi Jimi,

The MVC version of the beer house will support the SOA/REST methodology.  For an example of how it works please see the following:

http://www.ideapipe.com
http://www.ideapipe.com/?type=xml
http://www.ideapipe.com/?type=json
http://www.ideapipe.com/?type=atom

This is all done by changing out the view in the model view controller.  The "?type=" can be used on every page of the site and will GET a JSON or XML serialized version of the ViewData, and certain interfaces will be able to accept a POST.  These ones that accept a POST will be used mainly for the communication via AJAX. Â

The serialization class that makes all this possible is one that I created to support equal serialization between JSON and XML as well as support serialization of anonymous types.  The code can be found here:
http://code.google.com/p/coderjourna.../Serialization

Also if you are inclined you can participate in adding ideas for this book at
http://apps.new.facebook.com/ideapip...-solution-book

Check out my blog at: http://www.coderjournal.com
 
Old August 19th, 2008, 09:24 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
quote:Originally posted by jimibt
 chris,

one further point (and hopefully no offense to either yourself or anyone else on here), i notice on your website (http://Professionalaspnet.com) that any code examples are in vb.net. is the book planned to document the code in both c# and vb.net. this is important to me (that it's in c#) as c# (in my case) is the only .net language that i both use and also the only one that my main 'bread and butter' client authorises for use on it's business applications. not saying that this is 'right' in any way, just giving you a heads up.

jimi

http://www.originaltalent.com
Not to mention how following up two huge C# bestsellers with a VB book would be a total marketing blunder for Wrox. Kinda like putting out the next "Batman" movie in Latin.

 
Old August 19th, 2008, 09:40 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

caveat emptor .... robin!!

jimi

http://www.originaltalent.com
 
Old August 27th, 2008, 04:33 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Chris,

I noticed you intend to insert a photo gallery.
i added one to my site http://www.skistyle.be/Gallery/
what I think is important in photogallery is the following :
* use of subdirectories
* possibility to reuse these pictures in other pages

facebook functionality would indeed be great.
and of course full ajax support.

looking forward to the books :)

 
Old August 27th, 2008, 04:35 PM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

what also would be nice is a video management tool (youtube, uploaded movies, ...)
more social functionality

 
Old September 12th, 2008, 11:18 AM
Authorized User
 
Join Date: Jul 2008
Posts: 29
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to docluv
Default

Lee and Jimi,

yes, I am writing using VB as the primarly language and will be providing a C# version along with it. In the few cases where there might be any real language difference between the two I will post both in the book.

Releasing it in VB will attract a large audience, and since surveys are showing about 50-60% of the .NET community is VB, it opens up a huge marketplace.

Yes, Lee I am using LINQ to Entities, it us just easier to do that from my perspective. I may have some examples with ESQL, but I am still on the fence. I am working hard on that chapter this weekend, so we shall see.

I would like to know what you are talking about with the caching of Roles, I had not actually thought about it till I read your post. I have not found anything on it yet, so if you could pass a link or two along that would be great!

http://Professionalaspnet.com
 
Old September 12th, 2008, 12:28 PM
nberardi's Avatar
Wrox Author
 
Join Date: Aug 2008
Posts: 102
Thanks: 1
Thanked 16 Times in 16 Posts
Send a message via AIM to nberardi
Default

Hi Chris,

Just for my information can you post that survey you are talking about. Because from what I have seen and witnessed, VB.NET is in a decline.

Nick

Check out my blog at: http://www.coderjournal.com
 
Old September 15th, 2008, 09:18 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
quote:Originally posted by nberardi
 Hi Chris,

Just for my information can you post that survey you are talking about. Because from what I have seen and witnessed, VB.NET is in a decline.

Nick

Check out my blog at: http://www.coderjournal.com
+1 on this. I'd like to see where this stat comes from, and more importantly, how old it is.

Either way, it's important to consider that this series of books is presumably targeted toward advanced programmers, where C# is most definitely the language of choice.
 
Old September 15th, 2008, 09:32 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
quote:Originally posted by docluv



I would like to know what you are talking about with the caching of Roles, I had not actually thought about it till I read your post. I have not found anything on it yet, so if you could pass a link or two along that would be great!

http://Professionalaspnet.com
http://msdn.microsoft.com/en-us/library/ms164660.aspx

By setting up the rolemanager in web.config with cacheRolesInCookie=true, you avoid the hit to the data source for every page request to fetch the list of roles for the current user. Instead, ASP.NET sets a cookie that contains the roles, and the roles are fetched from the cookie.

Of course, as you can see from the link, you can set many other attributes for the cookie, like if it's persistent or a session cookie only, the timeout, sliding expiration, etc.

The only "heads-up" here is that you have to be careful that the cached roles do not become out of sync with the user's actual roles. You can do that by calling Roles.DeleteCookie() whenever you update the user's roles, which will purge the cache and reset it with a fresh list of roles from the data store.






Similar Threads
Thread Thread Starter Forum Replies Last Post
General Question about the beerhouse example kss BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 November 26th, 2008 12:08 PM
beerhouse and nhibernate rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 16 January 30th, 2008 04:33 AM
SEO and the beerhouse vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 12 August 6th, 2007 05:59 PM
BeerHouse from C# to VB.Net nesrine ASP.NET 2.0 Professional 0 February 20th, 2007 07:20 AM
Getting VC# to work with BeerHouse merlin89 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 11 December 5th, 2006 08:29 PM





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