Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: Ole F
Forum: BOOK: Professional ASP.NET MVC 2 November 9th, 2010, 06:47 PM
Replies: 24
Views: 15,054
Posted By Ole F
Page 133

When updating the Latitude/Longitude Textboxes to hidden boxes it should not be done as in page 133:

<%: Html.Hidden("Latitude", Model.Dinner.Latitude)%>
<%: Html.Hidden("Longitude",...
Forum: BOOK: Professional ASP.NET MVC 2 November 9th, 2010, 06:33 PM
Replies: 24
Views: 15,054
Posted By Ole F
Decimal point versus decimal comma

For those of you who live in a country where the decial point is replaced by a decimal comma (like in Denmark) you will need to make a couple of changes to make the map work.

Note: this is just...
Forum: BOOK: Professional ASP.NET MVC 2 November 8th, 2010, 04:09 PM
Replies: 15
Views: 4,539
Posted By Ole F
Page 99 - Snippet 1-61

On page 99 it states:

<% Html.RenderPartial("LoginStatus"); %>

But as far as I know, we have not created this view, so the correct command should be:

<%...
Forum: BOOK: Professional ASP.NET MVC 2 November 8th, 2010, 02:47 PM
Replies: 15
Views: 4,539
Posted By Ole F
dinnerToCreate on page 91

On page 91 it shows:

return View(new DinnerFormViewModel(dinnerToCreate));

It should be:

return View(new DinnerFormViewModel(dinner));
Forum: BOOK: Professional ASP.NET MVC 2 October 13th, 2010, 05:50 AM
Replies: 13
Views: 4,093
Posted By Ole F
Sorry for not being precise either

I was refering to your Delete Method only.

Imagine:
You have one dinner with dinnerID = 1

You have two RSVP's with dinnerID = 1 and RSVPID = 1 and 2.

In your foreach loop the following will...
Forum: BOOK: Professional ASP.NET MVC 2 October 12th, 2010, 04:54 PM
Replies: 13
Views: 4,093
Posted By Ole F
kermit1965, I guess you will get a problem with...

kermit1965, I guess you will get a problem with your code - especially if there are two (or more) RSVP's to a dinner!

Why? Because in you "foreach" loop you first delete the first rsvp. Then you...
Forum: BOOK: Professional ASP.NET MVC 2 October 11th, 2010, 05:44 PM
Replies: 6
Views: 1,452
Posted By Ole F
Download SQL Express for free

My suggestion is that since there are so many errors in the tutorial, I would download a free SQL Express.

A lot of the other errors are corrected in the forum (search for "errata") and there is...
Forum: BOOK: Professional ASP.NET MVC 2 October 10th, 2010, 01:15 PM
Replies: 3
Views: 1,147
Posted By Ole F
VS 2008 or VS 2010

Now it works... here is what I did:

Originally I did the tutorial in Visual Studio 2008.

Now I have installed Visual Studio 2010 and converted the project.
Then I changed the framework to...
Forum: BOOK: Professional ASP.NET MVC 2 October 10th, 2010, 04:10 AM
Replies: 6
Views: 1,452
Posted By Ole F
Attaching a database

I would still do as taught at page 14. After having created the NerdDinner.mdf file, I will then open SQL management studio, right-click on Databases and select Attach...

From the dialog, I will...
Forum: BOOK: Professional ASP.NET MVC 2 October 9th, 2010, 03:22 PM
Replies: 3
Views: 1,147
Posted By Ole F
Where are my RSVPs?

When getting to page 120 where I should be able to see whether or not I have RSVP'ed to an event, it doesn't work.

Debugging I can see that I have all my Dinners returned from the database to my...
Forum: BOOK: Professional ASP.NET MVC 2 September 25th, 2010, 11:48 AM
Replies: 4
Views: 1,432
Posted By Ole F
Very frustrating

I was so lucky to find chapter 1 of their first book (ASP.NET MVC) and found the tutorial very useful. It was actually the reason for me to buy the updated version (ASP.NET MVC 2), but as you guys,...
Forum: BOOK: Professional ASP.NET MVC 2 September 24th, 2010, 06:15 AM
Replies: 13
Views: 4,093
Posted By Ole F
Solution

I figured out how to make it work:


public void Delete(Dinner dinner)
{
foreach(var rsvp in dinner.RSVPs)
{
entities.DeleteObject(rsvp);
}
...
Forum: BOOK: Professional ASP.NET MVC 2 September 23rd, 2010, 09:48 AM
Replies: 13
Views: 4,093
Posted By Ole F
I'm listening....

as I have the same problem :-(
Showing results 1 to 13 of 13

 




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