Sandeep Kumar
What is syntax for Viewdata in MVC ?
By Sandeep Kumar in .NET on Dec 26 2015
  • Ritesh Singh
    Aug, 2016 4

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

    • 0
  • Sandeep Kumar
    Dec, 2015 26

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS