How to pass parameters to a partial view in MVC3 (razor). I replaced the regular View page with a partial view in my MVC project. For a normal browse page, I passed parameters like
public ActionResult MeanQ(int id) { Access access= db.Access.Find(id); return View(access); }
Now that I have changed the view to a partial view, I have the following code instead:
public ActionResult MeanQ(int id) { Access access= db.Access.Find(id); return PartialView("_MeanQPartial"); }
but I donβt know how I can pass the 'id' parameter so that it works as before. Please help. For what is a View or a partial view, both are launched by reference and displayed in the JQuery Modal dialog box.
source share