Category - Web Method
Results 1 - 5 of 12
19 Jun 2020 19 Jun 2020 0 Comments  780 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  813 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  992 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  1548 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  10215 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 .
Results 1 - 5 of 12