Category - JavaScript
3 Comments   31009 Views
Here Mudassar Khan has explain how to build popus using javascript in asp.net
4 Comments   175172 Views
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
1 Comments   38271 Views
Here Mudassar Ahmed Khan has explain how to check whether username is alread exit
1 Comments   44157 Views
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
1 Comments   10051 Views
Here Mudassar Ahmad Khan explain how to Disable Right Click in Browsers using javascript
0 Comments   17224 Views
Here Mudassar Ahemad Khan described how to build your own Ajax Enabled Grid using JavaScript
21 Comments   114473 Views
Here Mudassar Ahemad Khan Explain how to validate textbox using Javascript
13 Comments   60137 Views
Here Mudassar Ahmed Khan has described how to create your own watermark TextBox using JavaScript.
19 Comments   95446 Views
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.
6 Comments   70292 Views
Here Mudassar Ahmed Khan has explained how one can validate date without using any Custom Validator or Regular Expression using JavaScript
47 Comments   215169 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
1 Comments   38733 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
7 Comments   74373 Views
In this article Mudassar Ahmed Khan has explained how to create a modal popup without using ShowModalDialog property using JavaScript in ASP.Net
1 Comments   20103 Views
Here Mudassar Ahmed Khan has explained how prevent users from pasting or typing text in FileUpload control in ASP.Net using JavaScript
37 Comments   493100 Views
Here Mudassar Ahmed Khan has explained how to disable enter key in textbox to prevent form submission in ASP.Net using JavaScript
1 Comments   47899 Views
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
12 Comments   123550 Views
Here Mudassar Ahmed Khan has explained How to use JavaScript with Master Pages in ASP.Net
25 Comments   108959 Views
Here Mudassar Ahmed Khan has explained how to upload multiple files by dynamically adding or removing FileUpload controls using JavaScript in ASP.Net
23 Comments   134839 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net RadioButtonList Control
12 Comments   86898 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net CheckBoxList Control
30 Comments   188175 Views
Here Mudassar Ahmed Khan has explained how to display messagebox in ASP.Net using Server Side Code using JavaScript
0 Comments   15875 Views
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
21 Comments   102088 Views
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
0 Comments   13330 Views
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.
2 Comments   31005 Views
Here Mudassar Ahmed Khan has explained how to localize string messages in JavaScript using ASP.Net Localization and Resource files
44 Comments   117839 Views
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
4 Comments   23083 Views
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.
11 Comments   120848 Views
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
4 Comments   16221 Views
Here Mudassar Ahmed Khan has explained how to Localize Javascript strings or messages using ASP.Net Localization
1 Comments   26323 Views
Here Mudassar Ahmed Khan has explained how to get Absolute Position (Screen Coordinates) of HTML Control using JavaScript.
13 Comments   78715 Views
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.
0 Comments   21357 Views
Here Mudassar Ahmed Khan has explained how to pass JavaScript function or method as parameter argument to another JavaScript function or method
17 Comments   144194 Views
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.
13 Comments   40915 Views
Here Mudassar Ahmed Khan has explained how to check Username availability in SQL Server 2005 database using PageMethods in ASP.Net
0 Comments   32589 Views
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
10 Comments   47343 Views
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.
1 Comments   38204 Views
Here Mudassar Ahmed Khan has described a code snippet to play WAV sound files in ASP.Net using JavaScript
1 Comments   20160 Views
Here Mudassar Ahmed Khan has explained how to build your own simple Hover Menu using jQuery in ASP.Net
10 Comments   72761 Views
Here Mudassar Ahmed Khan has explained how to populate or bind ASP.Net DropDownList using ASP.Net AJAX Page Methods and JavaScript.
7 Comments   79249 Views
Here Mudassar Ahmed Khan has explained how to pass and fetch JavaScript Array to Web Service web method using ASP.Net AJAX Pagemethods.
19 Comments   54755 Views
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.
24 Comments   81455 Views
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
1 Comments   8184 Views
Here Mudassar Ahmed Khan has described how to filter or search for substring in array in JavaScript
3 Comments   90279 Views
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
3 Comments   34279 Views
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
6 Comments   50405 Views
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
10 Comments   74940 Views
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
0 Comments   51831 Views
Here Mudassar Ahmed Khan has explained how to get the IP Address of the client machine's using JavaScript and JSON.
0 Comments   16483 Views
Here Mudassar Ahmed Khan has explained how to create and use Enums (Enumeration) in JavaScript.
6 Comments   96668 Views
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.
1 Comments   26968 Views
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 .
19 Comments   131218 Views
Here Mudassar Ahmed Khan has explained how to build a server side Yes/No Confirmation Box using JavaScript and ASP.Net
4 Comments   51781 Views
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.
4 Comments   23345 Views
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.
0 Comments   11854 Views
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.
11 Comments   66269 Views
Here Mudassar Ahmed Khan has explained how to print ASP.Net Panel (HTML DIV) contents with Print Preview using JavaScript.
0 Comments   7497 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
0 Comments   4818 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
0 Comments   19383 Views
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
10 Comments   39803 Views
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.
5 Comments   61703 Views
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.
4 Comments   52501 Views
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.
0 Comments   35448 Views
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.
9 Comments   63228 Views
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
7 Comments   95960 Views
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.
3 Comments   21250 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button after login in ASP.Net using JavaScript
18 Comments   82012 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button after user has logged out in ASP.Net using JavaScript
0 Comments   24066 Views
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.
3 Comments   31676 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code how to add Google map in asp.net web page.
22 Comments   289131 Views
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.
3 Comments   26111 Views
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
12 Comments   150130 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to delete row from ASP.Net GridView Confirmation.
1 Comments   24436 Views
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.
41 Comments   608226 Views
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
0 Comments   9275 Views
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.
0 Comments   27900 Views
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
4 Comments   66046 Views
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.
3 Comments   139419 Views
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
9 Comments   90504 Views
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.
16 Comments   573845 Views
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
2 Comments   15478 Views
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.
0 Comments   27664 Views
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
3 Comments   20371 Views
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.
4 Comments   46595 Views
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.
12 Comments   52657 Views
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.
0 Comments   38405 Views
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.
0 Comments   14974 Views
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.
6 Comments   73201 Views
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.
1 Comments   15747 Views
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.
0 Comments   17676 Views
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
0 Comments   8433 Views
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.
0 Comments   23302 Views
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.
7 Comments   51942 Views
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
2 Comments   17590 Views
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.
9 Comments   106803 Views
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.
6 Comments   115192 Views
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.
8 Comments   73182 Views
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.
5 Comments   85250 Views
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.
2 Comments   50542 Views
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.
1 Comments   46843 Views
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
1 Comments   48932 Views
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.
4 Comments   26376 Views
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.
2 Comments   30231 Views
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.
8 Comments   36083 Views
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.
12 Comments   176214 Views
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.
4 Comments   86728 Views
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.
6 Comments   84568 Views
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.
0 Comments   72587 Views
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.
0 Comments   47833 Views
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.
14 Comments   62601 Views
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.
0 Comments   34397 Views
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.
0 Comments   41716 Views
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.
4 Comments   54280 Views
Here Mudassar Ahmed Khan has explained how to detect / find the IP Address of the client / user machine using JavaScript & jQuery.
4 Comments   26986 Views
Here Mudassar Ahmed Khan has explained how to add, include and use JavaScript with Content Pages in ASP.Net.
0 Comments   33746 Views
Here Mudassar Ahmed Khan has explained how to access ASP.Net Global Resource file in JavaScript, thus implementing Globalization in JavaScript strings.
10 Comments   32418 Views
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.
0 Comments   19775 Views
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.
0 Comments   3732 Views
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.
0 Comments   11090 Views
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.
2 Comments   60193 Views
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.
0 Comments   32760 Views
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.
0 Comments   12913 Views
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.
0 Comments   15564 Views
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
1 Comments   50900 Views
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.
3 Comments   64412 Views
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.
2 Comments   10780 Views
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.
3 Comments   37135 Views
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.
1 Comments   10559 Views
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.
3 Comments   30930 Views
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.
0 Comments   5237 Views
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.
0 Comments   5298 Views
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.
6 Comments   55554 Views
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.
3 Comments   49729 Views
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.
1 Comments   39629 Views
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.
0 Comments   25778 Views
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.
1 Comments   17293 Views
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.
0 Comments   11019 Views
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.
0 Comments   6580 Views
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.
0 Comments   10332 Views
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.
0 Comments   2074 Views
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.
3 Comments   31343 Views
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.
0 Comments   6426 Views
Here Mudassar Ahmed Khan has explained explain how to use and make call ASP.Net AJAX PageMethods using ASP.Net AJAX and ScriptManager.
1 Comments   15061 Views
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.
0 Comments   1182 Views
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.
0 Comments   34958 Views
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.
0 Comments   12550 Views
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.
0 Comments   20108 Views
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.
0 Comments   28103 Views
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.
0 Comments   9763 Views
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.
0 Comments   3217 Views
Here Mudassar Ahmed Khan has explained how to remove (delete) multiple selected items from the ASP.Net ListBox using JavaScript and jQuery.
0 Comments   4350 Views
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.
6 Comments   39153 Views
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.
0 Comments   1363 Views
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.
0 Comments   5205 Views
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.
0 Comments   3585 Views
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.
0 Comments   24795 Views
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.
0 Comments   2170 Views
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.
0 Comments   4689 Views
Here Mudassar Ahmed Khan has explained, how to perform Numeric (number) validation using TextBox OnKeyPress event in JavaScript.
0 Comments   13788 Views
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.
2 Comments   12855 Views
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.
0 Comments   9290 Views
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.
0 Comments   1304 Views
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.
0 Comments   5296 Views
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.
0 Comments   3414 Views
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.
0 Comments   29180 Views
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.
0 Comments   10993 Views
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.
1 Comments   90321 Views
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.
3 Comments   17329 Views
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.
0 Comments   16747 Views
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.
0 Comments   10913 Views
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.
0 Comments   3201 Views
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.
0 Comments   20850 Views
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.
0 Comments   24222 Views
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.
0 Comments   27620 Views
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.
0 Comments   8268 Views
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.
0 Comments   7075 Views
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.
0 Comments   2638 Views
Here Mudassar Ahmed Khan has explained the how to open the Default Email (Mail) Client application in ASP.Net.
0 Comments   2423 Views
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.
0 Comments   12836 Views
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.
0 Comments   2708 Views
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.
0 Comments   1708 Views
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).
1 Comments   17327 Views
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.
0 Comments   13546 Views
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.
0 Comments   6909 Views
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.
0 Comments   4932 Views
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.
0 Comments   2533 Views
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.
0 Comments   14955 Views
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.
0 Comments   4671 Views
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.
0 Comments   7943 Views
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.
0 Comments   2332 Views
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.
0 Comments   5159 Views
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.
0 Comments   3205 Views
Here Mudassar Ahmed Khan has explained with an example, how to access child popup window to parent page window using JavaScript.
0 Comments   4870 Views
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.
0 Comments   11567 Views
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.
0 Comments   1990 Views
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).
0 Comments   1756 Views
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).
0 Comments   5349 Views
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.
0 Comments   6041 Views
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.
0 Comments   4480 Views
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.
0 Comments   4347 Views
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.
0 Comments   8827 Views
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.
1 Comments   2490 Views
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.
0 Comments   721 Views
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.
0 Comments   747 Views
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.