Results 11 - 15 of 607
21 May 2019 21 May 2019 0 Comments  3170 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.
16 May 2019 16 May 2019 0 Comments  1544 Views
jQuery  HTML  Div  Image
Here Mudassar Ahmed Khan has explained with an example, how to build a simple Image Slider with Fade effect using jQuery.

In this Image Slider, the Background Image of HTML DIV will be automatically changed at certain period.

The URL of the Images will be stored in a JavaScript Array and then using JavaScript setInterval function, the Background Image of HTML DIV will be dynamically changed (swapped) periodically using jQuery.
15 May 2019 15 May 2019 0 Comments  2820 Views
jQuery  HTML  Div  Image
Here Mudassar Ahmed Khan has explained with an example, how to automatically change Background Image of HTML DIV at certain period i.e. every 5 seconds using jQuery.

The URL of the Images will be stored in a JavaScript Array and then using JavaScript setInterval function, the Background Image of HTML DIV will be dynamically changed (swapped) every 5 seconds using jQuery.
15 May 2019 15 May 2019 0 Comments  1575 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate Year in DropDownList i.e. HTML SELECT element using jQuery.

Inside the jQuery document ready event handler, the DropDownList i.e. HTML SELECT element will be referenced and using a For Loop, one by one Year values will be appended to the DropDownList using jQuery.
03 May 2019 03 May 2019 0 Comments  2035 Views
Here Mudassar Ahmed Khan has explained with an example, how to redirect to another Page with multiple Parameters using jQuery.

The multiple values to be passed to another Page will be added to the URL as QueryString parameters and then the Page will be redirected to another Page using JavaScript window.location property in jQuery.
Results 11 - 15 of 607