Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of TempData using JavaScript in ASP.Net MVC Razor.
The value of the TempData will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
↧