Hello guys,
I'm having a problem with the Create method of the NerdDinner tutorial, which is very good BTW.
As you can see here http://nerddinnerbook.s3.amazonaws.com/Part5.htm in the Create method, he removed the ID field of the aspx page.
I did that too, but I cannot add any dinners because I get a primary key violation.
How is Ne...
In my application I am using Entity Framework 4.0 for an ORM and I have a model metadata class defined for a Student in the models. I am using DataAnnotations for validations, and it's worked great. But I had a few instances where I needed custom validation attributes, because they applied to the class, not to individual properties. I...
I am using the following code to get data from database and output it as JSON:
public ActionResult Map()
{
var map = DeviceLocation.FindAll();
Locations l = new Locations();
l.locations = map;
return Json(l, JsonRequestBehavior.AllowGet);
}
Is there a way to make this ActionRsult auto refresh? T...