Category - JavaScript
Results 21 - 25 of 486
26 Jun 2019 26 Jun 2019 0 Comments  1360 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Group of RadioButtons (Multiple RadioButtons) using JavaScript.

When the Submit Button is clicked, all the RadioButtons in the Group will be referenced and using FOR loop, it will be validated that one RadioButton must be checked from the Group of RadioButtons using JavaScript.
25 Jun 2019 25 Jun 2019 0 Comments  1281 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Group of CheckBoxes (Multiple CheckBoxes) using JavaScript.

When the Submit Button is clicked, all the CheckBoxes in the Group will be referenced and using FOR loop, it will be validated that at-least one CheckBox is checked from the Group of CheckBoxes using JavaScript.
07 Jun 2019 07 Jun 2019 0 Comments  2962 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement AJAX Call using XML using JavaScript XmlHttpRequest (XHR) in ASP.Net MVC Razor.

The Controller’s Action method will be called using JavaScript XmlHttpRequest (XHR) and JSON from View in ASP.Net MVC Razor.
29 May 2019 29 May 2019 0 Comments  7856 Views
Here Mudassar Ahmed Khan has explained with an example, how to open Page (View) in New Tab (Window) on Button Click in ASP.Net MVC Razor.

Button cannot be used to open Page (View) in New Tab (Window) and hence using JavaScript’s window.open function, the Page (View) will be opened in New Tab (Window) on Button Click in ASP.Net MVC Razor.
21 May 2019 21 May 2019 0 Comments  7630 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable in JavaScript using jQuery in ASP.Net MVC Razor.

JavaScript is a Client Side language and hence directly it is not possible to set Session variable in JavaScript.

Thus, the solution is to make an AJAX call using jQuery AJAX and pass the value of JavaScript variable to a Controller and inside the Controller the value will be set in Session variable in ASP.Net MVC Razor.
Results 21 - 25 of 486