Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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
 
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old January 1st, 2009, 11:51 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default The only problem is that I can't sign up or register as a new user

Thanks Doug for your reply. Under Account, there is only login; and when you try to login there is no place to register as a new user.

Thanks,

Jiang
  #12 (permalink)  
Old January 1st, 2009, 11:52 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Sorry my bad, I found the "new user" link

Found it. Thanks!
  #13 (permalink)  
Old January 2nd, 2009, 12:37 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Glad it worked out for you. =]

-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
  #14 (permalink)  
Old January 2nd, 2009, 06:13 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Hi, Doug one more question

Hi, Doug

I looked through the implementation, looks like to be good at asp.net mvc you have to

1. A proficient Javascripter, preferably jQuery
2. Lose all the goodies the drag-and-drop custom controls offered to us in Web Forms (no gridview, no validators for free); you have to hand code all of those with html and javascript. (that's why TDD is so much needed in asp.net MVC; in web forms we don't have to test if gridview or validators have bugs, they are written for us by the good fellows in Microsoft; they are debugged and componentized for us to use for free. Now, I have to do all of that on top of the business logic programming; I guess I need to ask for a big pay-raise :)
  #15 (permalink)  
Old January 3rd, 2009, 05:44 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Hi Jiang, Doug,

did the code run without any changes ?
I just ran the code in VS 2008 Pro and I still get an error (compile works fine but I get an error on runtime :

First it errors on Article Queries :
on line 159 :
int
count = Configuration.TheBeerHouseSection.Current.Articles.PageSize;

The type initializer for 'TheBeerHouse.Configuration.TheBeerHouseSection' threw an exception.

when I hit F5, I get this error (configuration error)


Parser Error Message: Unrecognized element 'newsletter'.

Source Error:

Line 27: <articles pageSize="10"/>Line 28: <polls pageSize="10" archiveIsPublic="true" />Line 29: <newsletter Email="Newsletter@TheBeerHouse.com"/>
  #16 (permalink)  
Old January 3rd, 2009, 05:50 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

Just found it:
there's a typo in the web.config :

it should be newsletters (with an s)
email should be : fromEmail
and you need to add the attribute "displayName"

koen
  #17 (permalink)  
Old January 3rd, 2009, 02:38 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Also all checkboxes seem to have problems

I have to change them to something like:

<td align="center"><%= Html.CheckBox("IsApproved",membershipUser.IsApprov ed, new {disabled="true"}) %></td>

from
<td align="center"><%= Html.CheckBox("","", "", membershipUser.IsApproved, new {disabled="true"}) %></td>


I am still plowing through the app to rid of any run-time errors.

Jiang
  #18 (permalink)  
Old January 3rd, 2009, 03:04 PM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

I also have an issue with the membershipprovider.
did you get the db to work?
I had to use the script, when using the default settings, it complained about a version of the DB
  #19 (permalink)  
Old January 3rd, 2009, 04:12 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default there is a thebeerhouse.mdf

Under app_data, there is a thebeerhouse.mdf. I just attach it to sql 2008 and re-point the connectionstring to my local server that has the attached thebeerhouse.mdf.

Jiang
  #20 (permalink)  
Old January 3rd, 2009, 05:27 PM
Registered User
 
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Html.Button? Extension method?

I can't seem to resolve this run-time error about

<%= Html.Button<UserController>(userController => userController.ManageUser(null, null, null), "Return", "Return")%></p>

There is no HtmlHelper for Button and there is no extension method in the downloaded code. Something missing?

Jiang
 


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
TheBeerHouse MVC preview ASP.NET MVC Website Programming Problem Design Solution jminatel BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 July 18th, 2009 09:16 AM
chapter 13 - MVC omarosa BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 10 March 25th, 2009 12:00 AM
TBH to MVC Framework rocco50 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 23rd, 2008 04:50 PM
mvc datta123 Struts 1 October 26th, 2006 11:00 AM
MVC Design Issue gopalkis J2EE 3 September 21st, 2003 11:15 PM



All times are GMT -4. The time now is 10:07 AM.


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