Questions tagged [nerddinner]

an open source ASP.NET MVC project that allows Technology People to host their Lunches, Flashmobs, Dinners and informal get-togethers.

NerdDinner is an open source ASP.NET MVC project that allows Technology People to host their Lunches, Flashmobs, Dinners and informal get-togethers.

The source for the project is hosted at http://nerddinner.codeplex.com and contains branches that include use ASP.NET MVC versions 1, 2, & 3.

The live version of the site is available at http://www.nerddinner.com.

75 questions
3
votes
5 answers

ASP.NET MVC: How to transfer more than one object to View method?

I finished NerdDinner tutorial and now I'm playing a bit with project. Index page shows all upcoming dinners: public ActionResult Index() { var dinners = dinnerRepository.FindUpComingDinners().ToList(); return View(dinners); …
ilija veselica
  • 9,414
  • 39
  • 93
  • 147
3
votes
1 answer

Display list of values in MVC Detail View

I am new to web apps, MVC, and LinqToSql. I created an MVC web app using the NerdDinner tutorial as a guide. I'm now adding many-to-many relationships to it. And am just running into walls at every step. I have a multiselect list in the Edit…
RememberME
  • 2,092
  • 4
  • 37
  • 62
2
votes
3 answers

How do I get database validation among my rule violations on ASP.NET MVC?

On the NerdDinner example a set of business rules are written to validate the data on a model. Things like empty strings are checked for and by calling modelObject.GetRuleViolations() you can get them all. But there's another layer of validation…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
2
votes
1 answer

Missing methods in NerdDinner with Entity Framework setup

I am starting to learn the ASP.Net MVC framework with the help of the "Professional ASP.Net MVC 2" book from Wrox press. It introduces the framework by example of building the NerdDinner web application. It was smooth sailing at the beginning, I did…
2
votes
2 answers

NerdDinner form validation DataAnnotations ERROR in MVC2 when a form field is left blank

Platform: Windows 7 Ultimate IDE: Visual Studio 2010 Ultimate Web Environment: ASP.NET MVC 2 Database: SQL Server 2008 R2 Express Data Access: Entity Framework 4 Form Validation: DataAnnotations Sample App: NerdDinner from Wrox Pro ASP.NET MVC…
2
votes
2 answers

Is the Nerddiner walk-through suitable for ASP.NET MVC 2?

I'm keen to teach myself ASP.NET MVC 2 (coming from a heavy embedded or rich GUI background). If have found the nerddiner walk-through but it is still for ASP.NET MVC 1. The codeplex downloads have been updated to MVC 2 but the link for the PDF…
Ray Hayes
  • 14,896
  • 8
  • 53
  • 78
2
votes
2 answers

Asp.net MVC validation for non-strings

I originally built my site in MVC 1.0 using the NerdDinner tutorial as a basic outline. Many of the early design decisions were made simply b/c "that's how NerdDinner did it" Since then, it has really grown and was converted to 2.0. My validation…
RememberME
  • 2,092
  • 4
  • 37
  • 62
2
votes
2 answers

Nerddinner inserting longitude and latitude to database MVC

i am facing a problem in the nerddinner, what i am facing: in the DinnerForm.ascx there is a javascript code $(document).ready(function () { NerdDinner.EnableMapMouseClickCallback(); $("#Dinner_Address").blur(function (evt) { …
2
votes
3 answers

ASP.NET MVC 2 UpdateModel() is not updating values in memory or database

I am new to MVC, and so am working through the NerdDinner tutorial, here. In particular, I'm running into problems with the use of the UpdateModel method, which is explained in the part five of that tutorial. The problem is, when I try to edit the…
campbelt
  • 1,573
  • 5
  • 27
  • 43
2
votes
1 answer

Creating and Updating many to many relationships in C# asp.net MVC with Linq2Sql

I have created a web app in MVC following the NerdDinner tutorial. I have 2 fields that have many to many relationship with my "dinner". For each "dinner", I need to be able to select one or more Companies from a Company table and one or more…
RememberME
  • 2,092
  • 4
  • 37
  • 62
2
votes
2 answers

NerdDinner MVC4 version - why did they delete the repository classes?

I've been checking out the NerdDinner tutorials. I was reading through the original PDF tutorial (http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf) that uses LINQ to SQL and MVC2. In that tutorial, they implement a data context and…
Jim
  • 2,300
  • 1
  • 19
  • 43
2
votes
1 answer

using NerdDinner as an example, when should the DataContext be disposed

I noticed that NerdDinner doesn't dispose of the DataContext -- ever. That seems very strange to me. They have a Repository class that creates a private member of the data context, which hangs around for the lifetime of the repository class -- and…
Ralph Shillington
  • 20,718
  • 23
  • 91
  • 154
2
votes
3 answers

How does the NerdDinner example's Dinner.GetRuleViolations function return a list?

From what I've read, yield return jumps out of the function the moment the line is executed. However, Scott Guthrie's text indicates that var errors = dinner.GetRuleViolations(); successfully pulls out a list of all the rule violations…
Zian Choy
  • 2,846
  • 6
  • 33
  • 64
2
votes
1 answer

If NerdDinner had ads, would the Bing Maps compoment have licensing costs?

If I hosted NerdDinner and had google ad-sense would I be a commercial user of Bing Maps / Virtual Earth thus have licensing costs? I've looked and found this question: Virtual Earth or Google Maps and the TOS:…
itchi
  • 1,683
  • 14
  • 30
1
vote
1 answer

The type or namespace name 'DinnerForm' does not exist in the namespace 'NerdDinner.Models' when trying to implement partial form

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or…
B Woods
  • 580
  • 3
  • 7
  • 21