lundi 29 décembre 2014

How pass model to ASPX view


Vote count:

0




I have MVC application which uses old aspx views (not Razor).

My view is located in page1.aspx in my action I compute model which I want to pass. How could I do this?



public ActionResult MyAction()
{
...
var model = GetModel();

return View("page1.aspx", model);//how pass model to ASPX view
}


asked 49 secs ago

Jacek

1,844






How pass model to ASPX view

Aucun commentaire:

Enregistrer un commentaire