Last post Jul 13, 2017 04:26 PM by codemovement.pk
Jul 13, 2017 12:35 PM|tapan2017|LINK
i follow this article
they missed many things in their discussion.
suppose i have many file based view but one view store in db.
so when this action will fire
public ActionResult Contact()
ViewBag.Message = "Your contact page.";
then how asp.net view engine will understand that i want to load contact view from db.
show me how to achieve it.
Jul 13, 2017 02:03 PM|bruce (sqlwork.com)|LINK
is return a filled in ViewResult. see:
in your view engine, there is some code to find the view location. I assume it looks in the database first, then the file system. if the view name i not passed, then the action name from the route data collection is used.
Jul 13, 2017 04:26 PM|codemovement.pk|LINK
Create table in database as mentioned in below link. The DataView Body will contains every thing that you add in the .asmx file (razor code).
please follow. Hope it will help