Category - JavaScript
Here Mudassar Khan has explain how to build popus using javascript in asp.net
Here Mudassar Ahmed Khan has explained how to open popups using JavaScript and also transfer data between popup or child page and the parent page
Here Mudassar Ahmed Khan has explain how to check whether username is alread exit
Here Mudassar Ahmed Khan has explained how to use AJAX JavaScript and XMLHttp to query the server and find out whether user name already exists in the database using C and Vb.Net
Here Mudassar Ahmad Khan explain how to Disable Right Click in Browsers using javascript
Here Mudassar Ahemad Khan described how to build your own Ajax Enabled Grid using JavaScript
Here Mudassar Ahemad Khan Explain how to validate textbox using Javascript
Here Mudassar Ahmed Khan has described how to create your own watermark TextBox using JavaScript.
Here Mudassar Ahmed Khan has explained how to use JavaScript with ASP.Net GridView Control and implementing functionalities such as check all checkboxes and highlighting a row.
Here Mudassar Ahmed Khan has explained how one can validate date without using any Custom Validator or Regular Expression using JavaScript
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
In this article Mudassar Ahmed Khan has explained how to create a modal popup without using ShowModalDialog property using JavaScript in ASP.Net
Here Mudassar Ahmed Khan has explained how prevent users from pasting or typing text in FileUpload control in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has explained how to disable enter key in textbox to prevent form submission in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has explained how to create a filter for FileUpload control in order that it allows selected files to be uploaded in ASP.Net Web Applications
Here Mudassar Ahmed Khan has explained How to use JavaScript with Master Pages in ASP.Net
Here Mudassar Ahmed Khan has explained how to upload multiple files by dynamically adding or removing FileUpload controls using JavaScript in ASP.Net
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net RadioButtonList Control
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net CheckBoxList Control
Here Mudassar Ahmed Khan has explained how to display messagebox in ASP.Net using Server Side Code using JavaScript
Here Mudassar Ahmed Khan has explained how to use event.keyCode to get the key ASCII Code in Internet Explorer Mozilla Firefox Apple Safari Google Chrome and Opera
Here Mudassar Ahmed Khan has explained how to filter and Search DropDownLists items Client Side without using PostBack Server Side Code jQuery or AJAX requests instead using simple plain JavaScript
Here Mudassar Ahmed Khan has explained how to access ASP.Net Validation Controls (like Requiredfieldvalidator) in client side languages like JavaScript
Here Mudassar Ahmed Khan has explained how to display loading GIF image when ASP.Net AJAX Control Toolkit AutoCompleteExtender Control makes a call to the the server to search the records and hide the image when the records are populated using JavaScript.
Here Mudassar Ahmed Khan has explained how to localize string messages in JavaScript using ASP.Net Localization and Resource files
Here Mudassar Ahmed Khan has explained how to build a Gmail style file uploader using JQuery and Uploadify plugin for JQuery in ASP.Net
Here Mudassar Ahmed Khan has explained how to perform validation in TinyMCE Rich Text Editor using the ASP.Net Validators
Here Mudassar Ahmed Khan has explained how to fix the issue of repetition of JavaScript code when a WebUserControls is used multiple times on a same page. This repetition causes the JavaScript methods to stop working. This article explains how to resolve this issue.
Here Mudassar Ahmed Khan has explained how to get the selected node reference of ASP.Net TreeView and its Text and Value part client side using JavaScript in ASP.Net
Here Mudassar Ahmed Khan has explained how to Localize Javascript strings or messages using ASP.Net Localization
Here Mudassar Ahmed Khan has explained how to get Absolute Position (Screen Coordinates) of HTML Control using JavaScript.
Here Mudassar Ahmed Khan has explained how to change the Background and Border colors of invalid controls when validations fails so that we can notify the users that in a better way.
Here Mudassar Ahmed Khan has explained how to pass JavaScript function or method as parameter argument to another JavaScript function or method
Here Mudassar Ahmed Khan has explained how to call server side methods or functions using JavaScript and ASP.Net AJAX PageMethods without PostBack in ASP.Net.
Here Mudassar Ahmed Khan has explained how to check Username availability in SQL Server 2005 database using PageMethods in ASP.Net
Here Mudassar Ahmed Khan has explained how to dynamically adjust the width of the ASP.Net DropDownList (HTML SELECT) based on the text length of the largest item or option using JavaScript
Here Mudassar Ahmed Khan has explained how to disable ASP.Net button when it is clicked until PostBack occurs to prevent users click on the button.
Here Mudassar Ahmed Khan has described a code snippet to play WAV sound files in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has explained how to build your own simple Hover Menu using jQuery in ASP.Net
Here Mudassar Ahmed Khan has explained how to populate or bind ASP.Net DropDownList using ASP.Net AJAX Page Methods and JavaScript.
Here Mudassar Ahmed Khan has explained how to pass and fetch JavaScript Array to Web Service web method using ASP.Net AJAX Pagemethods.
Here Mudassar Ahmed Khan has explained explain how to add and remove TextBoxes dynamically using JavaScript in ASP.Net.

He has also explained how to fetch the values of the dynamically generated TextBoxes using JavaScript on Server Side and also retain the dynamic TextBoxes across PostBack.
Here Mudassar Ahmed Khan has explained how to dynamically freeze header or make the header fixed of ASP.Net GridView control using JavaScript. This is a cross browser solution and works in all new browsers including Internet Explorer 8 (IE8) Chrome FireFox Opera and Safari. This is a unique solution where you dont need to do anything the script will automatically convert your GridView to a scrollable grid with fixed headers
Here Mudassar Ahmed Khan has described how to filter or search for substring in array in JavaScript
Here Mudassar Ahmed Khan has explained how to induce Client side onclick event in ASP.Net TreeView nodes using JavaScript
Here Mudassar Ahmed Khan has explained how to validate File type using its extension in ASP.Net AJAX Control Toolkit AsyncFileUpload control client side using JavaScript
Here Mudassar Ahmed Khan has explained how to Detect ASP.Net Asynchronous PostBack and its settings like control and UpdatePanel that caused PostBack and the using PageRequestManager Events in JavaScript
Here Mudassar Ahmed Khan has explained how to make AJAX call to asp.net server side web service's webmethod using jQuery
Here Mudassar Ahmed Khan has explained how to implement File size limit validation before upload using jQuery uploadify plugin
Here Mudassar Ahmed Khan has explained how to do validate ASP.Net CheckBox client side using ASP.Net Custom Validator and JavaScript
Here Mudassar Ahmed Khan has explained how to modify the ASP.Net WCF (Windows Communication Foundation) service to make it accept AJAX JSON calls and to make AJAX JSON calls to ASP.Net WCF Service using JavaScript and jQuery
Here Mudassar Ahmed Khan has explained how to dynamically set value of ContextKey for ASP.Net AJAX Control ToolKit AutocompleteExtender using JavaScript
Here Mudassar Ahmed Khan has explained how to get the IP Address of the client machine's using JavaScript and JSON.
Here Mudassar Ahmed Khan has explained how to create and use Enums (Enumeration) in JavaScript.
Here Mudassar Ahmed Khan has explained how to populate dataset or datatable from database and bind it to ASP.Net GridView using jQuery AJAX and Webmethods.
Here Mudassar Ahmed Khan has explained how to debug and put breakpoints JavaScript and jQuery scripts code in Internet Explorer (IE) browser using Visual Studio debugger .
Here Mudassar Ahmed Khan has explained how to build a server side Yes/No Confirmation Box using JavaScript and ASP.Net
Here Mudassar Ahmed Khan has explained how to print ASP.Net GridView control, add page breaks where needed to void auto page breaks and clipping of rows and how to repaeat headers on each print page.
Here Mudassar Ahmed Khan has explained how to rotate images or pictures automatically using timed image swap technique in which image is swapped (changed) every specific interval. He has used JavaScript setInterval function at act as a timer which will swap images at regular intervals.
Here Mudassar Ahmed Khan has explained how to disable or prevent Cut, Copy and Paste operations and in HTML Input TextBox and TextArea and ASP.Net Single and MultiLine TextBox using JavaScript. The solution provided disables the Cut, Copy and Paste operations in both cases that is using CTRL key as well as using browser context menu.
Here Mudassar Ahmed Khan has explained how to print ASP.Net Panel (HTML DIV) contents with Print Preview using JavaScript.
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
Here Mudassar Ahmed Khan has explained how to convert JSON object to JSON string i.e. Serialize JSON object to string using JSON2 JavaScript Library
Here Mudassar Ahmed Khan has explained how to get the ASP.Net GridView Row and its RowIndex client side using JavaScript. He has also explained how we can find the GridView Cells and the controls inside the GridView Template Fields client side using JavaScript.
Here Mudassar Ahmed Khan has explained how to get the ASP.Net GridView SelectedRow and its RowIndex client side using JavaScript. He has also explained how we can find the GridView Cells and the controls inside the GridView Template Fields of the GridView SelectedRow client side using JavaScript.
Here Mudassar Ahmed Khan has explained how to validate email addresses client side in JavaScript using Regular Expressions.
Here Mudassar Ahmed Khan has explained how to persist JavaScript objects and variables across PostBacks or in other words Form Submissions in ASP.Net. He has explained with a help of an array variable. Though the example is in ASP.Net it can be used for other technologies also.
Here Mudassar Ahmed Khan has explained how to print only the items which are selected by checking the Checkbox control in ASP.Net DataList using JavaScript with Print Preview feature.
Here Mudassar Ahmed Khan has explained how to Populate ASP.Net GridView client side by fetching DataSet or DataTable from server as XML using jQuery AJAX and WebMethod
Here Mudassar Ahmed Khan has explained how to create a validation filter for FileUpload control in order that it allows upload of only files with specific extension.
Example for Word documents it will filter *.doc and *.docx extension, for Excel files it will flter *.xls and *.xlsx extensions.
The validation done here is dual i.e. both server side and client side.
Here Mudassar Ahmed Khan has discussed how to disable browser back button after login in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has discussed how to disable browser back button after user has logged out in ASP.Net using JavaScript
Here Mudassar Ahmed Khan has explained with an example and attached sample code how to add Google Maps to your website's Contact Us page to display your office location.
Here Mudassar Ahmed Khan has explained with an example and attached sample code how to add Google map in asp.net web page.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to make AJAX call to asp.net server side Page method (web method) using jQuery.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to delete rows or records from GridView with JavaScript Confirmation Box using CommandField and OnRowDeleting event in ASP.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to delete row from ASP.Net GridView Confirmation.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to get Absolute Position (Screen Cordinates) of HTML Elements like TextBox, DIV, Button, etc using JavaScript.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to build a server side Yes/No Confirmation Message or Dialog Box using JavaScript and ASP.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to disable or prevent Cut, Copy and Paste operations and in HTML Input TextBox and TextArea and ASP.Net Single and MultiLine TextBox using JavaScript.

The solution provided disables the Cut, Copy and Paste operations in both cases that is using CTRL key as well as using browser context menu using Mouse Right click.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to Highlight GridView row i.e. change its row background color on mouseover or when checkbox is checked using JavaScript
Here Mudassar Ahmed Khan has provided a short code snippet with an example and attached sample code, for how to find Latitude and Longitude for a given location using its address by making use of Google Maps API V3 (Version 3) and JavaScript.
Here Mudassar Ahmed Khan has explained the JavaScript error ( bobj is undefined ) that occurs when an ASP.Net Crystal Report 13 application developed in Visual Studio 2010 is hosted on server in IIS server.
Due to this error the Crystal Report Viewer is not rendered and we see a blank page.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to display alert message box in ASP.Net using Server Side Code behind using JavaScript, C# and VB.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to show or display a JavaScript Alert Message Box and then redirect user to another page or website after he clicks OK Button in ASP.Net Website using C# and VB.Net.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to show JavaScript alert message box in ASP.Net from server side using C# and VB.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to populate Google Maps Version 3 with animated markers with drop animation with delay using JavaScript.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to make an ASP.Net Multiline TextBox i.e. HTML TextArea automatically scroll to bottom when the page loads using JavaScript.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to change GridView Row Background Color using JavaScript when Row or its Cell is clicked in ASP.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to change GridView Row Background Color using JavaScript when Row or its Cell is clicked in ASP.Net
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to change or Highlight GridView Row Background Color on MouseOver ( Hover ) using jQuery and JavaScript in ASP.Net.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to print ASP.Net Panel (HTML DIV) contents with Print Preview using C# VB.Net and JavaScript.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, explain how to implement check uncheck all or select unselect all functionality for CheckBox in GridView ItemTemplate and HeaderTemplate using jQuery and JavaScript.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to change or highlight GridView Row Background Color on MouseOver ( Hover ) using jQuery in ASP.Net.
This is done by attaching jQuery Mouseover event handler to GridView Row Cells, thus when a Mouse is hovered over GridView Row or Cell its background color is changed thus making it look highlighted.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to highlight GridView Row when clicked.
Here using jQuery and JavaScript, a client side click event handler is attached to the GridView Row and when the row is clicked its background color is changed so that it looks highlighted.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to highlight ASP.Net GridView Row Color on Mouseover using jQuery in ASP.Net.
In order to implement GridView Row highlighting or change, jQuery Hover event handler is used, so that when mouse is moved over GridView Row its background color is changed so that the GridView Row looks highlighted and when mouse is moved out its color is changed back to normal like other GridView Rows.
Here Mudassar Ahmed Khan has explained, how to check and uncheck all (select unselect or deselect all) child node CheckBox or CheckBoxes of ASP.Net TreeView control using JavaScript and jQuery.

The idea is to attach the Client Side JavaScript click event handler using jQuery to all CheckBoxes inside the TreeView control and then when some CheckBox is clicked then based on whether it is Child or Parent CheckBox appropriate action is taken.

The script provided in this article works in dual way i.e. it Checks unchecks child CheckBoxes when parent CheckBox is checked or unchecked. While when all the child CheckBoxes are checked then the Parent CheckBox is checked and when even one Child CheckBox is unchecked the Parent CheckBox is unchecked.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to correctly highlight GridView Rows on Mouseover in ASP.Net using Client side JavaScript and jQuery functions
Here Mudassar Ahmed Khan has explained, how to Show (Open) and Hide (Close) ASP.Net AJAX ModalPopupExtender Modal Popup using JavaScript.

ASP.Net AJAX ModalPopupExtender Modal Popup has a property named as BehaviorId which when set can be used to access in client side in JavaScript functions.
Here Mudassar Ahmed Khan has explained, how to refresh or reload parent page when the child popup page window is closed using JavaScript in ASP.Net

Same can be implemented via jQuery there would not be any difference other than the style of attachment of the events.
Here Mudassar Ahmed Khan has explained, how to refresh or reload parent page from the child popup page on button click using JavaScript in ASP.Net
Here Mudassar Ahmed Khan has explained, how to refresh or reload parent page after child popup page window is closed using JavaScript

Same can be implemented via jQuery there would not be any difference other than the style of attachment of the events.
Here Mudassar Ahmed Khan has explained, how to refresh or reload parent page after child popup page window is closed using JavaScript

Same can be implemented via jQuery there would not be any difference other than the style of attachment of the events.
Here Mudassar Ahmed Khan has explained how to disable ASP.Net submit button when it is clicked after PostBack occurs to prevent users double click on the button using JavaScript
Here Mudassar Ahmed Khan has explained, how to restrict (prevent) user to enter only numbers i.e. numeric value or digits in TextBox using JavaScript.

He has also disabled the input via Dropping and Pasting so that user cannot directly drop or paste non numeric content in textbox.
Here Mudassar Ahmed Khan has explained, how to allow user to enter only numbers i.e. numeric value or digits in TextBox using JavaScript.

He has also disabled the input via Dropping and Pasting so that user is not allowed directly drop or paste non numeric value in textbox.
Here Mudassar Ahmed Khan has explained, how to perform Numeric validation in TextBox using JavaScript in such a way that the TextBox will accept only numbers i.e. numeric values or digits in TextBox.

He has also disabled the input via Dropping and Pasting so that user is not allowed directly drop or paste content in textbox and only way to input values is by typing through Keyboard.
Here Mudassar Ahmed Khan has explained, how to restrict user from entering special characters in TextBox using JavaScript or in other words remove special characters from TextBox using JavaScript as user types into the TextBox.

The script works in such a way that the TextBox will accept only alphabets, numbers i.e. alphanumeric values with some allowed special keys, thus unless a special character key has been specified to be excluded it won’t be accepted.
Here Mudassar Ahmed Khan has explained, how to refresh or reload parent window from child window on close using JavaScript

Same can be implemented via jQuery there would not be any difference other than the style of attachment of the events.
Here Mudassar Ahmed Khan has explained, how to allow only Alphanumeric character values i.e. Alphabets and Numbers with Space character in TextBox using JavaScript.

The script works in such a way that the TextBox will accept only alphabets, numbers i.e. alphanumeric values with space character, thus unless a special character key has been specified to be excluded it won’t be accepted.
Here Mudassar Ahmed Khan has explained, how to change TextBox Background color on Focus CSS and without any JavaScript or jQuery i.e. Highlight TextBox on focus using CSS and without any JavaScript or jQuery and set it back to default on blur
Here Mudassar Ahmed Khan has explained, how to move items from one ListBox to another ListBox in ASP.Net using jQuery.

This article also covers, how to fetch the items moved from the Left ListBox to the Right ListBox or vice versa on server side on Button click and preserve the items in the ListBoxes during PostBack.
Here Mudassar Ahmed Khan has explained the common issue how to access content page controls from Master Pages using JavaScript.

Problem happens since the Ids of the controls change when Master Page is used hence accessing them on client side using JavaScript becomes a problem.
Here Mudassar Ahmed Khan has explained how to display Progress Indicator Bar in ASP.Net AJAX Control Toolkit AutoCompleteExtender Control using loading GIF image when it makes call to the server to search the records and hide the image when the records are populated using JavaScript.
Here Mudassar Ahmed Khan has explained how to validate ASP.Net CheckBoxList control and check whether at least one CheckBox is checked using JavaScript at client side.
Here Mudassar Ahmed Khan has explained how to validate ASP.Net CheckBoxList control using Custom Validator and perform at least one CheckBox Checked Validation in it. The ASP.Net Custom Validator will make us eof JavaScript function to validate the CheckBoxList control.
Here Mudassar Ahmed Khan has shown the technique how to automatically hide an ASP.Net Label control after some seconds (say 5 seconds) using JavaScript.
Here Mudassar Ahmed Khan has explained how to open new popup window from Server Side (Code Behind) in ASP.Net using C# and VB.Net.

In order to open a new popup window from Server Side (Code Behind), we need to use the ClientScript RegisterStartupScript method to register the JavaScript method to open new window.
Here Mudassar Ahmed Khan has explained how to enable disable ASP.Net Validator (Client Side Validation) such has RequiredField validator, RegularExpression validator, Custom validator, etc. using JavaScript or jQuery.

In order to enable or disable ASP.Net Validator (Client Side Validation), we need to make use of the inbuilt ValidatorEnable ASP.Net client side JavaScript function.
Here Mudassar Ahmed Khan has explained, how to draw route line between two geographic locations i.e. coordinates (Latitude and Longitude points) on Google Maps V3.

The route line is drawn on the shortest route between the locations. This article also explains how to change the stroke color of the route line drawn between the coordinates on Google Maps V3.
Here Mudassar Ahmed Khan has explained how to pass value from child popup window to parent page window using JavaScript.

The child popup window must be opened using JavaScript window.open function. And in such case we can access the parent page controls using JavaScript window.opener instance.
Here Mudassar Ahmed Khan has explained how to search GridView records (data) on TextBox KeyPress event using jQuery in ASP.Net.

In order to search GridView records (data) on TextBox KeyPress event, I am making use of jQuery QuickSearch Plugin which dynamically searches the GridView cells and filters out the unwanted rows and displays only the records (data) that matches the input search term.
Here Mudassar Ahmed Khan has shared a trick to prevent user refreshing the browser using Keyboard F5 function key by disabling the F5 function key using JavaScript or jQuery.

The idea is to determine the key code of the pressed key and if it is 116 i.e. ASCII key code of Keyboard F5 function key then stop its propagation by returning false inside the event handler.
Here Mudassar Ahmed Khan has explained how to modify the ASP.Net WCF (Windows Communication Foundation) service to make it accept AJAX JSON calls and to make AJAX JSON calls to ASP.Net WCF Service using JavaScript and jQuery
Here Mudassar Ahmed Khan has explained how to validate / check file size before it is uploaded using jQuery Uploadify plugin.

By default there is no way to validate / check file size before it is uploaded, but jQuery Uploadify Plugin makes use of Flash program to determine the size of the File as soon as it is selected.
Here Mudassar Ahmed Khan has explained how to print specific (particular) part of web page in ASP.Net using C# and VB.Net.

The idea is to place the contents to be printed inside an ASP.Net Panel control and then print the contents of the Panel control.
Here Mudassar Ahmed Khan has explained how to validate CheckBoxes inside GridView and perform at least one checked validation using JavaScript in ASP.Net.

Validation of CheckBoxes inside GridView is performed using ASP.Net CustomValidator with a client side JavaScript validation function.
Here Mudassar Ahmed Khan how to validate CheckBoxes inside Repeater and perform at least one checked validation using JavaScript in ASP.Net.

Validation of CheckBoxes inside Repeater is performed using ASP.Net CustomValidator with a client side JavaScript validation function.
Here Mudassar Ahmed Khan has explained how to dynamically create HTML5 canvas charts using JavaScript, jQuery and JSON.

The HTML 5 Canvas charts have been implemented using the free Chart.js library to which JSON object is supplied as source of data. This article also covers procedure to display the animated HTML5 chart in browsers that do not support CSS3 like IE 8.
Here Mudassar Ahmed Khan has explained how to detect / find the IP Address of the client / user machine using JavaScript & jQuery.
Here Mudassar Ahmed Khan has explained how to add, include and use JavaScript with Content Pages in ASP.Net.
Here Mudassar Ahmed Khan has explained how to access ASP.Net Global Resource file in JavaScript, thus implementing Globalization in JavaScript strings.
Here Mudassar Ahmed Khan has explained how to display JavaScript Alert Message Box from server side when using AJAX UpdatePanel in ASP.Net.

I have already explained how to Show Alert Message in ASP.Net from Server Side using C# and VB.Net, but ClientScript.RegisterClientScriptBlock and ClientScript.RegisterStartupScript methods for registering JavaScript code from server side do not work when AJAX UpdatePanel is used.
Here Mudassar Ahmed Khan has explained how to solve the issue, ClientScript.RegisterClientScriptBlock and ClientScript.RegisterStartupScript not working in AJAX UpdatePanel in ASP.Net.
Here Mudassar Ahmed Khan has explained how to allow website visitors to change i.e. increase or decrease font size of text using JavaScript and jQuery.
He has shown how to change i.e. increase or decrease the font size of text of whole page or particular section or part of page using JavaScript or jQuery

There are multiple monitor dimensions and resolutions, thus sometimes users find it difficult to read the information and hence they can use this feature to increase or decrease font size of the text for improved readability.
Here Mudassar Ahmed Khan has explained how to dynamically change the error message of ASP.Net Custom Validator using JavaScript.

In order to illustrate the functioning with an example, I have created a simple form where a person has to enter either Phone Number or Cell Number and based on what he chooses the validation message of the ASP.Net CustomValidator is dynamically changed using JavaScript.
Here Mudassar Ahmed Khan has explained how to prevent users from submitting form by hitting enter using JavaScript in ASP.Net.
Here Mudassar Ahmed Khan has explained how to use Regular Expression (Regex) to accept/allow only Alphabets and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
Here Mudassar Ahmed Khan has provided a tip on how to display multiple lines in a JavaScript Alert box or in other words how to create a multi-line Alert in JavaScript.
Here Mudassar Ahmed Khan has explained how to display a modal popup window using window.open method in JavaScript.
JavaScript already has ShowModalDialog function but it does not work in all browser and hence I have come up with a trick where using Modal DIV background we can freeze the Parent Page content until Modal Window is closed.
Here Mudassar Ahmed Khan has explained how to call JavaScript function from code behind using ClientScript.RegisterStartupScript before redirect to another page in ASP.Net using C# and VB.Net.

Since JavaScript function will get called only when the page is rendered while Response.Redirect will end the page response and hence we need to make use of JavaScript redirection using window.location method.
Here Mudassar Ahmed Khan has explained how to find and access controls in Content Page using JavaScript when using Master Page using JavaScript document.getElementById function in ASP.Net.
Here Mudassar Ahmed Khan has explained how to solve the issue JavaScript window.event.keyCode not working in Internet Explorer (IE), Mozilla FireFox, Chrome, Safari and Opera browsers.

He has also shown how to get the ASCII keyCode on JavaScript KeyPress, KeyUp and KeyDown events.
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
Here Mudassar Ahmed Khan has explained how to find and access a control such as TextBox, Button, DropDownList, RadioButton, etc. placed inside a UserControl or in other words WebUserControl (ASCX) from Parent Page (ASPX) using JavaScript in ASP.Net.

When a Control is placed inside a UserControl its ID changes when it is rendered as an HTML element and hence we need to first find the control and then determine its ClientID in order to access the control using JavaScript.
Here Mudassar Ahmed Khan has explained how to display Session Timeout message before Session expires in ASP.Net.

The concept behind this approach is to inform the user in advance that his session is about to expire and show him a Session timeout counter.
Here Mudassar Ahmed Khan has explained how to display images in GridView with LightBox effect whenever user clicks on images in ASP.Net using C# and VB.Net.
Thus building an Image Gallery using GridView with image enlarge feature whenever user clicks on the image.
Here Mudassar Ahmed Khan has explained how to copy data from Excel file or Clipboard and paste it to GridView in ASP.Net using C# and VB.Net.

We cannot paste the copied data from Excel file or Clipboard to GridView and hence we need to paste the data to an ASP.Net Multiline TextBox or TextArea and then populate GridView.
Here Mudassar Ahmed Khan has explained how to validate Terms and conditions CheckBox using JavaScript and CustomValidator in ASP.Net.
Here Mudassar Ahmed Khan has explained how to print contents of HTML DIV using JavaScript. The contents of the HTML DIV will be printed with a Print Preview.
Here Mudassar Ahmed Khan has explained how to print HTML DIV content without opening new popup window using JavaScript.

The traditional method to print HTML DIV content is to open a new popup window and write the contents to it and finally call the Print command. Thus in this article I will explain how to get rid of the popup window and print the DIV content.
Here Mudassar Ahmed Khan has explained how to draw a route between user’s current location and the specified location on Google Maps V3.

In day to day life in our mobile phones we make use of navigation, in similar way using the HTML5 GeoLocation feature we can determine the current location of the user and using the Google Maps Geocoding API we can determine the position coordinates i.e. Latitude and Longitude of an Address.

Thus now we can easily draw route between the two locations using the Google Maps Routing API.
Here Mudassar Ahmed Khan has explained a very interesting topic i.e. to detect whether the keyboard Caps Lock key is ON or OFF dynamically when typing into a TextBox using JavaScript and jQuery.

There is no way to detect whether in a browser but by writing some logic to detect the various keyboard keys I have developed a code that does the job and works in all browsers.
Here Mudassar Ahmed Khan has explained how to check (validate) File (Image) size before upload using JavaScript and jQuery.

HTML5 allows developers to access the file contents and details using JavaScript and jQuery and hence in browsers that support HTML5 one can easily determine the size of the File.
For browsers that don’t support HTML5 have to use jQuery Flash plugins like Uploadify.
Here Mudassar Ahmed Khan has explained how to change the URL in browser without reloading or refreshing the page using HTML5 History API in JavaScript and jQuery.

HTML5 History API allows browsers to modify the URL without reloading or refreshing the page using pushState function.
Here Mudassar Ahmed Khan has explained how to read, parse and display a CSV file (Comma separated Text file) selected in FileUpload control (HTML File Input) on client side using JavaScript, jQuery and HTML5.

HTML5 allows developers to access the file contents and details using JavaScript and jQuery and hence in browsers that support HTML5 one can easily read the file contents.
Here Mudassar Ahmed Khan has explained how to create a dynamic Table in HTML at runtime using JavaScript. The columns, rows and cells will be dynamically created in the Table using JavaScript.
Here Mudassar Ahmed Khan has explained how to preview multiple images before upload using HTML INPUT FileUpload control using JavaScript jQuery, CSS and HTML5.

The multiple image preview is displayed using HTML5 FileReader API in browsers that support HTML5 i.e. Internet Explorer 10 and 11+, Mozilla FireFox, Google Chrome and Opera.
Here Mudassar Ahmed Khan has explained, how to perform Numeric validation in TextBox on KeyPress using JavaScript in such a way that the TextBox will accept only numbers i.e. numeric values or digits in TextBox.
Here Mudassar Ahmed Khan has explained how to clear ASP.Net FileUpload control using JavaScript and jQuery. ASP.Net FileUpload control is actually HTML Input File element which is ReadOnly i.e. one cannot modify its value on Client Side using JavaScript or jQuery.

Hence he has created a clone of the original control and replaced it with new one in order to clear ASP.Net FileUpload control on Client Side using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to solve the JavaScript errors Bobj is undefined and bobj.isObject is not a function when Crystal Report is used with Visual Studio 2012 and 2013.
Here Mudassar Ahmed Khan has explained how to print Crystal Report on Client Side on Button Click using JavaScript in ASP.Net. This solution will work printing for Crystal Reports version 13 generated with Visual Studio 2010, 2012 and 2013 in ASP.Net.
Here Mudassar Ahmed Khan has explained how to disable mouse right click in ASP.Net (ASPX) page using JavaScript and jQuery.

The script has to be copied in Master Page or Content Page and it will disable mouse right click in ASP.Net (ASPX) page using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to dynamically add and remove TextBoxes dynamically using JavaScript in ASP.Net using C# and VB.Net.

He has also explained how to fetch the values of the dynamically generated TextBoxes using JavaScript on Server Side and also retain the dynamic TextBoxes across PostBack.
Here Mudassar Ahmed Khan has explained how to display default Text Label in TextBox using JavaScript in ASP.Net.

The process to display default Text Label in TextBox is known as Watermarking.
Here Mudassar Ahmed Khan has explained how to validate File extension before Upload using Regular Expression (Regex) in JavaScript and jQuery.

The selected File’s extension will be validated using a Regular Expression and an error message will be displayed when an invalid file is selected.
Here Mudassar Ahmed Khan has explained explain how to use and make call ASP.Net AJAX PageMethods using ASP.Net AJAX and ScriptManager.
Here Mudassar Ahmed Khan has explained how to get value of Label set on client side using JavaScript on server side (code behind) in ASP.Net using C# and VB.Net.

Label controls do not send values to server and hence their value is lost on PostBack. To solve this issue we need to make use of Hidden Field which sends the JavaScript modified value to server.
Here Mudassar Ahmed Khan has explained how to dynamically include an external JavaScript JS file in another external JavaScript JS file.

The external JavaScript JS file will be included using dynamic Script Tags.
Here Mudassar Ahmed Khan has explained how to get Client ID of ASP.Net control in JavaScript and jQuery. This problem starts happening once we use Master Page as the ID of controls are changed on client side which makes it impossible to find an of ASP.Net control using JavaScript.
Here Mudassar Ahmed Khan has explained how to call WebMethod from JavaScript with parameters in ASP.Net using C# and VB.Net.

The WebMethod will be called using ASP.Net AJAX PageMethods.
Here Mudassar Ahmed Khan has explained how to display GridView Row details in New Popup Window using JavaScript and jQuery in ASP.Net.

The new Popup Window will be opened when the HyperLink in GridView row is clicked.
Here Mudassar Ahmed Khan has explained how to pass value of JavaScript variable to Server Side (Code Behind) in ASP.Net using C# and VB.Net.
Here Mudassar Ahmed Khan has explained how to add (insert) Item (values) to ASP.Net ListBox using JavaScript and jQuery. The value from the TextBox will be added to the ASP.Net ListBox control using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to remove (delete) multiple selected items from the ASP.Net ListBox using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to make an ASP.Net ListBox empty by clearing (removing) all items of the ASP.Net ListBox using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to print DIV contents with CSS styles using JavaScript and jQuery without using any jQuery Print plugin.
When one tries to print a DIV with CSS styles applied from an external CSS file, the contents are printed without the CSS styles. Thus using the following trick one can print the DIV contents with the CSS styles.
Here Mudassar Ahmed Khan has explained how to disable mouse right click in web page using JavaScript and jQuery.

The script has to be copied in the head or body section of the web page and it will disable mouse right click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained the easiest way to disable Submit button after click using JavaScript and jQuery.
The script needs to be placed on the web page and it will disable all submit buttons as soon as any submit button is clicked using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained JSONP request with Callback example using JavaScript i.e. how to make a Cross Domain JSONP request with Callback using plain JavaScript without using jQuery.
Callback means that it will call the JavaScript function whose name is specified in the Callback parameter once the response is ready.
Here Mudassar Ahmed Khan has explained how to populate (display) JSON data in HTML Table using JavaScript.
The HTML Table will be dynamically created by looping through the JSON array elements on Button click.
Here Mudassar Ahmed Khan has explained how dynamically add Rows and Cells in an HTML Table using JavaScript.
Here Mudassar Ahmed Khan has explained how to dynamically add rows to GridView on client side using JavaScript on Button click in ASP.Net.
The GridView Rows added using JavaScript on client side will be fetched on server side and inserted into the database.
Here Mudassar Ahmed Khan has explained, how to perform Numeric (number) validation using TextBox OnKeyPress event in JavaScript.
Here Mudassar Ahmed Khan has explained how to get the Text and Value of multiple selected items of ASP.Net ListBox using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to debug JavaScript in Visual Studio 2010, 2012 and 2013 using Internet Explorer browser.
In ASP.Net projects, we can easily debug JavaScript by running the website in Debug mode in Internet Explorer using Visual Studio.
Here Mudassar Ahmed Khan has explained how to find, access, get value and validate TextBox and DropDownList controls in GridView row using JavaScript in ASP.Net.
This article will explain how to find and validate TextBox and DropDownList controls inside the ASP.Net GridView row using JavaScript when it is being edited.
Here Mudassar Ahmed Khan has explained how to display Current Time in 12 hour format (AM / PM) and 24 hour format with Hours Minutes, Seconds (hh:mm:ss) using JavaScript.
The 12 hour time will be displayed in hh:mm:ss tt format with AM / PM and the 24 hour time will be displayed in hh:mm:ss format using JavaScript.
Here Mudassar Ahmed Khan has explained how to call JavaScript function after AJAX UpdatePanel Refresh or Partial PostBack (Asynchronous request) in ASP.Net.
In order to call JavaScript function after AJAX UpdatePanel Refresh or Partial PostBack (Asynchronous request), the AJAX PageRequestManager endRequest event handler will be used.
Here Mudassar Ahmed Khan has explained how to use Enumeration in JavaScript i.e. define and use Enum in JavaScript. JavaScript does not have any Enum data type but still we can create an array of key value pair and use it as Enum.
Here Mudassar Ahmed Khan has explained how to pass (send) value from child popup window to parent page window using JavaScript.
The child popup window must be opened using JavaScript window.open function. The window.open function returns the reference of the opened Child popup window using which the elements and controls of the Child popup window will be accessed.
Here Mudassar Ahmed Khan has provided code to disable / restrict / prevent mouse right click in web page using JavaScript and jQuery.

The code has to be copied in your web page HEAD section and it will disable / restrict / prevent mouse right click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to call Code Behind (Server Side) methods or functions using Client Side JavaScript code in ASP.Net using C# and VB.Net.
The Code Behind (Server Side) function will be called using AJAX PageMethods and JavaScript.
Here Mudassar Ahmed Khan has explained how to call JavaScript Client Side function from Code Behind (Server Side) in ASP.Net using C# and VB.Net.
The JavaScript Client Side function will be called from Code Behind (Server Side) using ClientScript RegisterStartupScript method.
Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList in OnChange event using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList on Button click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to validate (check) HTML Select DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to get Text and Value of selected Item (Option) of ASP.Net DropDownList on Button click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to validate (check) ASP.Net DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to get and then validate (check) dimensions (Height and Width) of Image file before upload using HTML5, JavaScript and jQuery.
HTML5 allows developers to access the file details such as Height and Width using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to count the characters of TinyMCE Rich Text Editor and also implement Character Limit validation i.e. limit the number of allowed characters for TinyMCE editor using JavaScript.
Here Mudassar Ahmed Khan has explained with example how to display (show) JavaScript Alert message box on Button click using AngularJS ng-click directive.
AngularJS makes use of global variable named $window which is a reference of the JavaScript window object in order to access the JavaScript window functions such as Alert.
Here Mudassar Ahmed Khan has explained how to display (show) JavaScript Confirm dialog box on Button click using AngularJS ng-click directive.
AngularJS makes use of global variable named $window which is a reference of the JavaScript window object in order to access the JavaScript window functions such as Confirm.
Here Mudassar Ahmed Khan has explained a tutorial with example on how to use HTML5 History API pushState function in JavaScript and jQuery.
HTML5 History API allows browsers to modify the URL without reloading or refreshing the page using pushState function.
Here Mudassar Ahmed Khan has explained how to enable disable ASP.Net RequiredFieldValidator, using JavaScript and jQuery.

In order to enable or disable ASP.Net RequiredFieldValidator, we need to make use of the inbuilt ValidatorEnable ASP.Net client side JavaScript function.
Here Mudassar Ahmed Khan has explained how to automatically redirect User after Session Timeout in ASP.Net using C# and VB.Net.
When Session is timed out, user will be automatically redirected to the Login page.
Here Mudassar Ahmed Khan has explained how to display (show) AJAX Control Toolkit ModalPopupExtender Modal Popup after validation of ASP.Net validators (such as RequiredFieldValidator) is successful in ASP.Net.
Here Mudassar Ahmed Khan has explained how to show and hide HTML DIV with TextBox when CheckBox is checked (selected) and unchecked (unselected) using JavaScript and jQuery.
When the CheckBox is clicked based on whether it is checked (selected) or unchecked (unselected), the HTML DIV with TextBox will be shown or hidden.
Here Mudassar Ahmed Khan has explained how to solve the issue of JavaScript document.getElementById returning NULL when accessing any ASP.Net control on a page that uses Master Page.
This problem starts when Master Page is used as the ID of controls are changed on client side and hence JavaScript document.getElementById returns NULL as it is not able to find the control.
Here Mudassar Ahmed Khan has explained how to display validation error messages of ASP.Net Validators such as RequiredFieldValidator, RegularExpressionValidator, CustomValidator, CompareValidators, etc. in JavaScript Alert Message Box.
ASP.Net has provision to display error messages of ASP.Net Validators in JavaScript Alert Message Box using ValidationSummary control.
Here Mudassar Ahmed Khan has explained how to uncheck a CheckBox when another CheckBox inside CheckBoxList control is checked in ASP.Net using JavaScript.
Here Mudassar Ahmed Khan has explained how to show and hide HTML DIV with TextBox based RadioButton selection or click i.e. when RadioButtons are checked (selected) and unchecked (unselected) using JavaScript and jQuery.
When the RadioButton is clicked based on whether it is checked (selected) or unchecked (unselected), the HTML DIV with TextBox will be shown or hidden.
Here Mudassar Ahmed Khan has explained how to redirect to another page (HTML page) after delay of some time (say 5 seconds or 10 seconds) using JavaScript and jQuery.
The JavaScript setInterval function will be used to redirect to another page after delay of some time using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to delete row from GridView without using database i.e. delete row from GridView without deleting from database in ASP.Net using C# and VB.Net.
In order to delete row from ASP.Net GridView without using database, Temporary DataTable stored in ViewState is used.
Here Mudassar Ahmed Khan has explained how to make HTML Anchor Links (HyperLink) non-clickable or disabled using JavaScript and jQuery.
The HTML disabled attribute does not work for HTML Anchor Links (HyperLink) and they are still clickable.
Here Mudassar Ahmed Khan has explained how to upload multiple files using FileUpload Control in ASP.Net versions 2.0, 3.0 and 3.5.
Older ASP.Net versions such as 2.0, 3.0 and 3.5 does not support the new AJAX based controls for uploading multiple files and hence dynamic FileUpload controls are created using JavaScript for selecting and uploading multiple files.
Here Mudassar Ahmed Khan has explained how to print Crystal Report on Client Side without Print Preview window using JavaScript in ASP.Net. This solution will work printing for Crystal Reports version 13 generated with Visual Studio 2010, 2012 and 2013 in ASP.Net.
Here Mudassar Ahmed Khan has explained how to print RDLC Report (ReportViewer) on Client Side without Print Preview window using JavaScript in ASP.Net, C# and VB.Net.
Here Mudassar Ahmed Khan has explained how to enable a RequiredFieldValidator when CheckBox is checked and disable a RequiredFieldValidator when CheckBox is unchecked in ASP.Net using JavaScript and jQuery.
In order to enable or disable ASP.Net RequiredFieldValidator, the ASP.Net ValidatorEnable client side JavaScript function is used.
Here Mudassar Ahmed Khan has explained how to make a TextBox required if a CheckBox is checked by enabling the RequiredFieldValidator in ASP.Net using JavaScript and jQuery.
In order to enable ASP.Net RequiredFieldValidator for the TextBox when the CheckBox is checked, the ASP.Net ValidatorEnable client side JavaScript function is used.
Here Mudassar Ahmed Khan has explained the how to open the Default Email (Mail) Client application in ASP.Net.
Here Mudassar Ahmed Khan has explained a short article on how to create and open MailTo Links using JavaScript.
MailTo links are set with email addresses and are used to open the default installed Email (Mail) Client application.
Here Mudassar Ahmed Khan has explained with example how to display (show) JavaScript Alert message box on Button click using AngularJS ng-click directive.
In order to show JavaScript Alert Message Box, $window variable is used in AngularJS.
Here Mudassar Ahmed Khan has explained with example, how to Zoom in and Zoom out Text (Change Text size) using JavaScript and jQuery.
Here he has shown how to change i.e. Zoom in or Zoom out the Text size of text of whole page or particular section or part of page using JavaScript or jQuery
There are multiple monitor dimensions and resolutions, thus sometimes users find it difficult to read the information and hence they can use this feature to Zoom In or Zoom out Text size for improved readability.
Here Mudassar Ahmed Khan has explained, how to implement AlphaNumeric validation i.e. allow users to enter only Alphabets and Numbers for password TextBox in JavaScript.t.

The script works in such a way that the TextBox will accept only alphabets, numbers i.e. alphanumeric values with space character, thus unless a special character key has been specified to be excluded it won’t be accepted.
Here Mudassar Ahmed Khan has explained how to implement Password Strength validation for Password TextBox with examples in JavaScript and jQuery.
The Password strength validation in JavaScript and jQuery will be performed using Regular Expressions (Regex).
Here Mudassar Ahmed Khan has explained how to enable and disable a TextBox when CheckBox is clicked i.e. checked (selected) and unchecked (unselected) using JavaScript and jQuery.
When the CheckBox is clicked based on whether it is checked (selected) or unchecked (unselected), the TextBox will be enabled or disabled.
Here Mudassar Ahmed Khan has explained with an example, how to detect Session Timeout and redirect to Login Page in ASP.Net using C# and VB.Net.
Here Mudassar Ahmed Khan has explained how to find, access, get value and validate TextBox and DropDownList controls in GridView row using JavaScript in ASP.Net.
This article will explain how to find and validate TextBox and DropDownList controls inside the ASP.Net GridView row using JavaScript when it is being edited.
Here Mudassar Ahmed Khan has explained with an example, how to delete (remove) all rows from an HTML Table except First (Header) row using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to delete (remove) all rows from an HTML Table except First and Second row using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to display (show) Current Server Time using JavaScript in ASP.Net
The Current Server Time will be displayed by calling a JavaScript function from Code Behind (Server Side) and passing the value of Current Server Time as parameter using ClientScript RegisterStartupScript method.
Here Mudassar Ahmed Khan has explained with an example, how to check whether a CheckBox is checked (selected) or not selected (unchecked) using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to find GPS Coordinates i.e. Latitude and Longitude for a given location using its address by making use of Google Maps API V3 (Version 3) and JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to use and dynamically display (show) ASP.Net AJAX ModalPopupExtender Modal Popup without setting its TargetControlID property.
ASP.Net AJAX ModalPopupExtender Modal Popup can be shown using JavaScript using the BehaviorID property and hence it can be shown using any Button without setting the Button’s ID to the TargetControlID property.
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to get Location Coordinates i.e. Latitude and Longitude from Zip Code (Pin Code) by making use of Google Maps API V3 (Version 3) and JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to display default Text Label in Input TextBox using JavaScript in HTML
The process to display default Text Label in HTML Input TextBox is known as Watermarking.
Here Mudassar Ahmed Khan has explained with an example, how to avoid / prevent / disable double click on Submit button using JavaScript and jQuery.
When user double clicks any Button, it results in duplicate operations and hence to avoid such behavior as soon as the Submit Button is clicked, it is disabled using JavaScript or jQuery to avoid / prevent / disable double click on Submit button using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to access child popup window to parent page window using JavaScript.
Here Mudassar Ahmed Khan has explained with example, how to dynamically create and insert Header Cell (TH element) in HTML Table using JavaScript.
JavaScript insertCell function can insert Cell (TD element) to an HTML Table but it does not work for Header Cell (TH element) and hence the Header Cell (TH element) is created using document.createElement function and then inserted to the Header Row of the HTML Table.
Here Mudassar Ahmed Khan has explained with an example, how to pass multiple Eval (DataBinder.Eval) values as parameter to JavaScript function in ASP.Net using C# and VB.Net.
The multiple Eval (DataBinder.Eval) values from database are passed to a JavaScript function as parameters when Button is clicked inside GridView control.
Here Mudassar Ahmed Khan has explained with an example, how to display the details of the GridView Row in JavaScript alert message box when the Button inside the GridView Row is clicked in ASP.Net using C# and VB.Net.
Here Mudassar Ahmed Khan has explained with an example, how to get count (number) of rows in ASP.Net GridView using JavaScript.
This article will explain how to get the total count of the number of rows in ASP.Net GridView and also how to get the count of the number of all rows except the First (Header) row in ASP.Net GridView using JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to get count (number) of rows in HTML Table using JavaScript and jQuery.
This article will explain how to get the total count of the number of rows in HTML Table and also how to get the count of the number of all rows except the First (Header) row in HTML Table using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to delete (Remove) row from GridView on Button (LinkButton) click in ASP.Net using C# and VB.Net.
The GridView Row will be deleted (removed) using CommandField column and it can be displayed as Button as well as LinkButton by setting the ButtonType property to Button or LinkButton respectively.
Here Mudassar Ahmed Khan has explained with an example, how to perform Password and Confirm Password validation for Password TextBox using JavaScript and jQuery.
The values of the Password and Confirm Password TextBoxes are compared using JavaScript and jQuery and if the values do not match an error message is displayed.
Here Mudassar Ahmed Khan has explained with an example, how to use switch case with Enum (Enumeration) in JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to implement Password complexity validation in JavaScript and jQuery.
The Password complexity validation in JavaScript and jQuery will be performed using Regular Expressions (Regex).
Here Mudassar Ahmed Khan has explained with an example, how to access child popup window elements from parent page window in JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to implement check uncheck all (select unselect all) CheckBoxes functionality in ASP.Net Repeater control using JavaScript and jQuery.
When the header row Checkbox is checked (selected), all the row CheckBoxes will be checked (selected) and vice versa. When any row CheckBox is unchecked (unselected), the header row Checkbox is also unchecked (unselected).
Here Mudassar Ahmed Khan has explained with an example, how to implement check uncheck all (select unselect all) CheckBoxes functionality in ASP.Net DataList control using JavaScript and jQuery.
When the header Checkbox is checked (selected), all the CheckBoxes in DataList will be checked (selected) and vice versa. When any CheckBox in DataList is unchecked (unselected), the header Checkbox is also unchecked (unselected).
Here Mudassar Ahmed Khan has explained with an example, how to call JavaScript function from Code Behind (Server Side) when using ASP.Net AJAX UpdatePanel.
The ClientScript.RegisterClientScriptBlock and ClientScript.RegisterStartupScript functions do not work during Partial PostBack when ASP.Net AJAX UpdatePanel is used and hence ScriptManager’s RegisterClientScriptBlock and RegisterStartupScript method is used to call JavaScript function.
Here Mudassar Ahmed Khan has explained with an example, how to change the URL in browser address bar without reloading or refreshing the page using HTML5 History API in JavaScript and jQuery.
HTML5 History API allows browsers to change the URL in browser address bar without reloading or refreshing the page using pushState function.
Here Mudassar Ahmed Khan has explained with an example, how to display exception (error) Message details using JavaScript Alert MessageBox in ASP.Net using C# and VB.Net.
Exception details such as Message, StackTrace, TargetSite and Source will be displayed using JavaScript Alert MessageBox in ASP.Net.
Here Mudassar Ahmed Khan has explained with an example, how to use HTML5 Canvas for Graphing and Data Visualization.

The HTML 5 Canvas charts have been implemented using the free Chart.js library to which JSON object is supplied as source of data. This article also covers procedure to display the animated HTML5 chart in browsers that do not support CSS3 like IE 8.
Here Mudassar Ahmed Khan has explained with an example, how to disable Button and Submit button after one click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to add ToolTip to ASP.Net DropDownList Items (Options) using JavaScript and jQuery.
The ToolTip is dynamically added to each item by setting the HTML Title attribute of the each item (option) of the ASP.Net DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to display (show) success message after record inserted (Form Submit) in ASP.Net using C# and VB.Net.
This article will illustrate how to display (show) success message using JavaScript alert message box after record inserted (Form Submit) in ASP.Net.
Here Mudassar Ahmed Khan has explained with an example, how to populate (fill) HTML Table with XML data using JavaScript and jQuery.
The XML string will be read into an XML document which will be later used to populate the HTML Table using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to implement delete functionality with JavaScript Confirmation Box in ASP.Net DetailsView using C# and VB.Net.
Here Mudassar Ahmed Khan has explained with an example, how to delete / remove / clear all items (options) from DropDownList (DropDown) using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to Delete (Remove) selected Item (Option) from DropDownList (DropDown) using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to reset (clear) DropDownList selection (selected value) using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to reset (clear) ListBox selection (selected values) using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to implement delete functionality with JavaScript Confirmation Box in ASP.Net Repeater control using C# and VB.Net.
Here Mudassar Ahmed Khan has explained with example, how to add multiple in Google Map using JavaScript and Google Maps API V3.
Here Mudassar Ahmed Khan has explained with an example, how to enable or disable HTML Anchor Links (HyperLink) using JavaScript and jQuery.
The HTML disabled attribute does not work for HTML Anchor Tags (HyperLink) and they are still clickable.
Here Mudassar Ahmed Khan has explained with an example, how to call JavaScript function of SelectedIndexChanged on HTML DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to display (show) XML string (data) on HTML page in Table format using JavaScript and jQuery.
The XML string will be read into an XML document which will be later used to populate the HTML Table using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained with an example, how to scroll to the first error or to the first Validator that has raised the error when validation fails in ASP.Net using JavaScript.
In a long form it becomes difficult for users to find out which validation has failed and hence this feature enhances the user experience by scrolling the page and setting focus to the control where the validation is failed.
Here Mudassar Ahmed Khan has explained with an example, how to validate multiple Email Addresses using JavaScript and Regular Expressions.
Here Mudassar Ahmed Khan has explained with an example, how to implement multiple TextBox Email validation in JavaScript.
Here Mudassar Ahmed Khan has explained with an example, how to get the Server Current Date and Time in ASP.Net using C# and VB.Net.
ASP.Net is Client Server architecture and hence to get the Server Current Date and Time, AJAX and ScriptManager will be used.
Here Mudassar Ahmed Khan has explained with an example, how to display message from Controller in View using JavaScript Alert MessageBox.
The message sent from Controller to View will be displayed in JavaScript Alert MessageBox using ViewBag object.