asp.net viewdata

Posted by mazhar on Stack Overflow See other posts from Stack Overflow or by mazhar
Published on 2010-05-07T13:23:41Z Indexed on 2010/05/07 13:28 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

public ActionResult AddDinner() { Dinner dinner = dinnerRepository.GetDinner(id); ViewData["dinner"] = repository.AllDinners();

  return View(dinner);
}

1) First of all both the dinner object and the ViewData["dinner"] is passing to the view?

2) Secondly how would I iterate over the ViewData["dinner"] in the view?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc