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

January 1st, 2009, 11:51 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 1st, 2009, 11:52 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Sorry my bad, I found the "new user" link
Found it. Thanks!
|
|

January 2nd, 2009, 12:37 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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."
===============================================
|
|

January 2nd, 2009, 06:13 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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 :)
|
|

January 3rd, 2009, 05:44 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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="[email protected]"/>
|
|

January 3rd, 2009, 05:50 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|
|

January 3rd, 2009, 02:38 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 3rd, 2009, 03:04 PM
|
|
Friend of Wrox
|
|
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|
|

January 3rd, 2009, 04:12 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 3rd, 2009, 05:27 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |