Category - JavaScript
Results 61 - 80 of 563
26 Jun 2020 26 Jun 2020 0 Comments  12694 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Google Places (Address) AutoComplete TextBox in ASP.Net using C# and VB.Net.

This article will explain how to get the complete Address of a Location using the Google Places API of Google Maps and then send the complete Address and its Geographical coordinates i.e. Latitude and Longitude to Server Side method in ASP.Net using C# and VB.Net.

The Google Places (Address) AutoComplete TextBox is part of Google Maps API and it is used to find out Address and their Geographical coordinates i.e. Latitude and Longitude of a Location.
19 Jun 2020 19 Jun 2020 0 Comments  7740 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  9533 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.
18 Apr 2020 18 Apr 2020 0 Comments  15404 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Confirmation Box before Delete in ASP.Net MVC Razor.

The Delete Button in WebGrid Row will be assigned JavaScript Confirm function, so that when the Delete Button is clicked, a JavaScript Confirmation Box will be displayed in ASP.Net MVC Razor.
15 Apr 2020 15 Apr 2020 0 Comments  20252 Views
Here Mudassar Ahmed Khan has explained with an example, how to call a JavaScript function on Selected Date event in jQuery DatePicker plugin.

The jQuery DatePicker plugin supports various events and the event which is raised when a Date is selected in the Calendar i.e. when User clicks on the Date a JavaScript function will be called.
20 Mar 2020 20 Mar 2020 0 Comments  5648 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Group of RadioButtons (Multiple RadioButtons) using JavaScript in ASP.Net.

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 in ASP.Net.
20 Mar 2020 20 Mar 2020 0 Comments  8047 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate RadioButton i.e checked or unchecked 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 is checked from the Group of RadioButtons using JavaScript.
19 Mar 2020 19 Mar 2020 0 Comments  10740 Views
Here Mudassar Ahmed Khan has explained with an example, how to display (show) Confirmation message after Form Submit (record inserted) in ASP.Net using C# and VB.Net.

This article will illustrate how to display (show) Confirmation message using JavaScript alert message box after Form Submit (record inserted) in ASP.Net.
13 Mar 2020 13 Mar 2020 0 Comments  11373 Views
Here Mudassar Ahmed Khan has explained with an example, how to write JavaScript function in Code Behind (Server Side) in ASP.Net using C# and VB.Net.

The JavaScript function will be written and executed using RegisterClientScriptBlock function of ClientScript class in ASP.Net using C# and VB.Net.
04 Mar 2020 04 Mar 2020 1 Comments  51952 Views
Here Mudassar Ahmed Khan has explained with an example, how to enable or disable Button based on condition using JavaScript.

This article will illustrate how to enable the Button when text is entered in TextBox and disable the Button when the TextBox is empty using JavaScript.
04 Mar 2020 04 Mar 2020 0 Comments  15058 Views
Here Mudassar Ahmed Khan has explained with an example, how to enable Button when text is entered in TextBox using JavaScript.

This article will illustrate how to enable Button when text is entered in TextBox using the JavaScript OnKeyUp event of TextBox.
17 Feb 2020 17 Feb 2020 0 Comments  13022 Views
Here Mudassar Ahmed Khan has explained with an example, how to display (copy) TextBox value to Label using JavaScript in HTML.

When the Copy Button is clicked, the value of the TextBox is assigned to the Label using JavaScript in HTML.
04 Jan 2020 04 Jan 2020 0 Comments  22430 Views
Here Mudassar Ahmed Khan has explained with an example, how to display message from Controller in View using JavaScript Alert MessageBox in ASP.Net MVC Core.

The message sent from Controller to View will be displayed in JavaScript Alert MessageBox using ViewBag object in ASP.Net MVC Core.
21 Dec 2019 21 Dec 2019 0 Comments  23817 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (export) JSON string as PDF using JavaScript.

The JSON string will be converted into a JSON object. The data from the JSON object will be used to populate an HTML Table and later the HTML Table will be downloaded (exported) as PDF file using the pdfmake plugin in JavaScript.
19 Dec 2019 19 Dec 2019 0 Comments  14296 Views
Here Mudassar Ahmed Khan has explained with an example, how to use ViewState variable inside JavaScript in ASP.Net with C# and VB.Net.

ViewState is a Server Side class object which though stores the data on Client Side but it is in Encrypted Form (Hashed format) and hence cannot be read by Plain JavaScript.

Thus the ViewState variable is accessed inside JavaScript code with the help of Server Side Code Blocks in ASP.Net with C# and VB.Net.
19 Dec 2019 19 Dec 2019 0 Comments  15238 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Page_ClientValidate function with JavaScript in ASP.Net.

Page_ClientValidate is an ASP.Net JavaScript function in-built which is used to perform ASP.Net validation explicitly i.e. invoking the ASP.Net Validators using JavaScript.

For example, in order to make the RequiredFieldValidator work with OnClientClick we need to make use of Page_ClientValidate JavaScript function in ASP.Net.
12 Dec 2019 12 Dec 2019 0 Comments  13991 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dynamic Table with DropDownList in HTML using JavaScript.

When the Add Button is clicked, a new Table Row with a DropDownList will be dynamically created and added to the HTML Table and when the Remove Button is clicked, the Table Row with DropDownList will be removed from the HTML Table using JavaScript.
10 Dec 2019 10 Dec 2019 0 Comments  8816 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically create DropDownList (HTML SELECT) in HTML using JavaScript.

When the Add Button is clicked, a DropDownList will be dynamically created with OPTIONS and added to the Page using JavaScript.
10 Dec 2019 10 Dec 2019 0 Comments  14121 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add Row with DropDownList (HTML SELECT) using JavaScript.

When the Add Button is clicked, a new Row with DropDownList will be dynamically created and added to the Page and when the Remove Button is clicked, the Row with DropDownList will be removed using JavaScript.
05 Dec 2019 05 Dec 2019 0 Comments  32095 Views
Here Mudassar Ahmed Khan has explained with an example, how to download JSON object (Array) as File from Browser using JavaScript.

Initially a JSON object (Array) will be created and then it will be converted into a JSON String, then to BLOB object and ultimately downloaded (exported) as Text file from Browser using JavaScript.
Results 61 - 80 of 563