2
Reply

What is syntax for Viewdata in MVC ?

Sandeep Kumar

Sandeep Kumar

Dec 26, 2015
678
0

    ******* Set Temp Data *********** public ActionResult Index() {ViewData["Name"] = "Monjurul Habib";return View(); } ******* Get Temp Data *********** @ViewData["Name"]

    Ritesh Singh
    August 04, 2016
    0

    The syntax for Viewdata in MVC is Viewdata["variable"]=value;

    Sandeep Kumar
    December 26, 2015
    0