Category - JavaScript
Results 1 - 5 of 523
15 Jan 2021 15 Jan 2021 0 Comments  843 Views
Here Mudassar Ahmed Khan has explained with an example, how to change the default Camel Case JSON Output in ASP.Net Core.

The default Camel Case JSON property names tend to break the Client Side JavaScript and hence in order to remove it, the default JSON Serialization needs to be replaced with Newtonsoft.Json Serialization in ASP.Net Core.
12 Jan 2021 12 Jan 2021 0 Comments  851 Views
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.
12 Jan 2021 12 Jan 2021 0 Comments  756 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of ViewData using JavaScript in ASP.Net MVC Razor.

The value of the ViewData will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
07 Jan 2021 07 Jan 2021 0 Comments  960 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of ViewBag using JavaScript in ASP.Net MVC Razor.

The value of the ViewBag will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
31 Dec 2020 31 Dec 2020 0 Comments  1673 Views
Here Mudassar Ahmed Khan has explained with an example, how to set ViewBag using JavaScript or jQuery in ASP.Net MVC Razor.

ViewBag is created on Server Side of the Web application and hence it is not possible to directly set it on Client Side using JavaScript or jQuery.

Thus, only possible way is to set it by making an AJAX call to the Controller’s Action method using jQuery AJAX function in ASP.Net MVC Razor.
Results 1 - 5 of 523