Category - Web Method
02 Apr 2022 02 Apr 2022 0 Comments  5920 Views
Here Mudassar Khan has explained and provided solution about why AJAX File Upload does not work with Web Methods (Page Methods) in ASP.Net using C# and VB.Net.
28 Oct 2021 28 Oct 2021 0 Comments  10213 Views
Here Mudassar Ahmed Khan has explained with an example, how to get HttpContext.Current.Session value in JavaScript or jQuery with ASP.Net.

Session object or Session variable is stored on Server and hence in order to get its value in JavaScript or jQuery, an AJAX call will be done to the Server Side method in ASP.Net using C# and VB.Net.
09 Dec 2020 09 Dec 2020 2 Comments  32966 Views
Here Mudassar Ahmed Khan has explained with an example, how to download File using jQuery AJAX in ASP.Net with C# and VB.Net.

This article will illustrate how to download a file using jQuery AJAX with the help of WebMethod in ASP.Net.
09 Dec 2020 09 Dec 2020 1 Comments  23326 Views
ASP.Net  Excel  AJAX  jQuery  Word  PDF  Web Method
Here Mudassar Ahmed Khan has explained with an example, how to download File from Web Method via AJAX call in ASP.Net using C# and VB.Net.

The AJAX call will be done using jQuery AJAX function and the file will be converted to Base64 string and downloaded from Web Method in ASP.Net.
19 Jun 2020 19 Jun 2020 0 Comments  10134 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web Service using JavaScript XmlHttpRequest in ASP.Net with C# and VB.Net.

The Web Method of Web Service (ASMX) in HTML Page will be called using XmlHttpRequest (XHR) AJAX call in ASP.Net.
04 Jun 2020 04 Jun 2020 0 Comments  13416 Views
Here Mudassar Ahmed Khan has explained with an example, how to call (consume) Web Service (ASMX) in HTML Page using Plain JavaScript in ASP.Net using C# and VB.Net.

The Web Method of Web Service (ASMX) in HTML Page will be called using XmlHttpRequest (XHR) AJAX call in ASP.Net.
20 May 2020 20 May 2020 0 Comments  15821 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email using Web Service in ASP.Net using C# and VB.Net.

In this article, Gmail SMTP Mail Server will be used for sending emails.

To send email with Gmail SMTP Server, you will need to use an email address and password of a valid Gmail account and along with that you will need the Gmail SMTP Mail Server settings.
15 Apr 2020 15 Apr 2020 0 Comments  15407 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate jQuery DataTable using WebMethod (PageMethod) and AJAX in ASP.Net with C# and VB.Net.

First a jQuery AJAX call will be made to a WebMethod (PageMethod) on Server Side and the WebMethod (PageMethod) will return the Data in JSON format.

Finally, the returned JSON data will be used on Client Side to populate the jQuery DataTable in ASP.Net with C# and VB.Net.
22 May 2019 03 Jun 2019 0 Comments  32121 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable using jQuery in ASP.Net using C# and VB.Net.

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

Thus, the solution is to make an AJAX call using jQuery AJAX and pass the value of JavaScript variable to a Web Method and inside the Web Method, the value will be set in Session variable in ASP.Net using C# and VB.Net .
20 May 2019 20 May 2019 0 Comments  32505 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Session variable in JavaScript in ASP.Net using C# and VB.Net.

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 XmlHttpRequest (XHR) and pass the value of JavaScript variable to a WebMethod and inside the WebMethod the value will be set in Session variable in ASP.Net using C# and VB.Net.
11 Apr 2019 11 Apr 2019 0 Comments  7485 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement AutoComplete TextBox using AngularJS in ASP.Net Web Forms using C# and VB.Net.

This article will illustrate how to use angucomplete-alt AutoComplete Directive for implementing Database driven AutoComplete TextBox using AngularJS in ASP.Net Web Forms with C# and VB.Net.
07 Mar 2019 07 Mar 2019 0 Comments  14906 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) ListView using jQuery AJAX in ASP.Net with C# and VB.Net.

This article will illustrate how to populate ASP.Net ListView control from SQL Server Database on Client Side by calling WebMethod using jQuery AJAX in ASP.Net with C# and VB.Net.
06 Nov 2018 06 Nov 2018 0 Comments  13777 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from the AppSettings section of the Web.Config file in jQuery in ASP.Net using C# and VB.Net.

It is not possible to read the AppSetting value directly in jQuery and hence an AJAX call will be made to a WebMethod which will read the AppSetting value and return it to the Client Side script.
05 Nov 2018 05 Nov 2018 0 Comments  4839 Views
Here Mudassar Ahmed Khan has explained with an example, how to make AJAX call using XmlHttpRequest (XHR) in ASP.Net using C# and VB.Net.

This article will illustrate how to get the Current Server Time by making AJAX call to a Server Side function (WebMethod) using JavaScript XmlHttpRequest (XHR) in ASP.Net with C# and VB.Net.
02 Nov 2018 06 Nov 2018 0 Comments  14439 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from the AppSettings section of the Web.Config file in JavaScript in ASP.Net using C# and VB.Net.

It is not possible to read the AppSetting value directly in JavaScript and hence using JavaScript XmlHttpRequest (XHR), an AJAX call will be made to a WebMethod which will read the AppSetting value and return it to the JavaScript function.
02 Nov 2018 02 Nov 2018 0 Comments  17298 Views
Here Mudassar Ahmed Khan has explained with an example, how to call WebMethod with parameters using XmlHttpRequest (XHR) in ASP.Net using C# and VB.Net.

This article will illustrate how to get the Current Server Time by making AJAX call to a WebMethod using JavaScript XmlHttpRequest (XHR) in ASP.Net with C# and VB.Net.
31 Aug 2012 19 Aug 2022 10 Comments  119988 Views
Here Mudassar Khan has explained with an example, how to implement Paging in GridView using jQuery AJAX in ASP.Net with C# and VB.Net.

Client Side Paging in GridView will be implemented using ASPSnippets_Pager jQuery Plugin.