Category - JavaScript
01 Feb 2009
3 Comments   25662 Views
Here Mudassar Khan has explain how to build popus using javascript in asp.net
01 Feb 2009
4 Comments   156839 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
03 Feb 2009
0 Comments   30852 Views
Here Mudassar Ahmed Khan has explain how to check whether username is alread exit
03 Feb 2009
1 Comments   38083 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
07 Feb 2009
1 Comments   8747 Views
Here Mudassar Ahmad Khan explain how to Disable Right Click in Browsers using javascript
07 Feb 2009
0 Comments   15378 Views
Here Mudassar Ahemad Khan described how to build your own Ajax Enabled Grid using JavaScript
08 Feb 2009
21 Comments   102539 Views
Here Mudassar Ahemad Khan Explain how to validate textbox using Javascript
06 Mar 2009
13 Comments   53955 Views
Here Mudassar Ahmed Khan has described how to create your own watermark TextBox using JavaScript.
13 Mar 2009
19 Comments   84605 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.
21 Mar 2009
6 Comments   61844 Views
Here Mudassar Ahmed Khan has explained how one can validate date without using any Custom Validator or Regular Expression using JavaScript
24 Mar 2009
47 Comments   182521 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
03 Apr 2009
1 Comments   37345 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
07 May 2009
7 Comments   61347 Views
In this article Mudassar Ahmed Khan has explained how to create a modal popup without using ShowModalDialog property using JavaScript in ASP.Net
19 May 2009
1 Comments   18599 Views
Here Mudassar Ahmed Khan has explained how prevent users from pasting or typing text in FileUpload control in ASP.Net using JavaScript
29 May 2009
35 Comments   467523 Views
Here Mudassar Ahmed Khan has explained how to disable enter key in textbox to prevent form submission in ASP.Net using JavaScript
29 May 2009
1 Comments   39956 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
30 May 2009
11 Comments   83251 Views
Here Mudassar Ahmed Khan has explained How to use JavaScript with Master Pages in ASP.Net
31 May 2009
25 Comments   87497 Views
Here Mudassar Ahmed Khan has explained how to upload multiple files by dynamically adding or removing FileUpload controls using JavaScript in ASP.Net
15 Jun 2009
23 Comments   96418 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net RadioButtonList Control
17 Jun 2009
12 Comments   64458 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net CheckBoxList Control
24 Jun 2009
30 Comments   158252 Views
Here Mudassar Ahmed Khan has explained how to display messagebox in ASP.Net using Server Side Code using JavaScript
11 Jul 2009
0 Comments   14760 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
23 Nov 2009
21 Comments   77341 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
26 Feb 2010
0 Comments   10753 Views
Here Mudassar Ahmed Khan has explained how to access ASP.Net Validation Controls (like Requiredfieldvalidator) in client side languages like JavaScript
18 Apr 2010
16 Comments   34873 Views
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.
11 May 2010
2 Comments   27646 Views
Here Mudassar Ahmed Khan has explained how to localize string messages in JavaScript using ASP.Net Localization and Resource files
11 May 2010
44 Comments   107440 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
25 Jul 2010
4 Comments   23185 Views
Here Mudassar Ahmed Khan has explained how to perform validation in TinyMCE Rich Text Editor using the ASP.Net Validators
30 Jul 2010
4 Comments   15927 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.
05 Aug 2010
11 Comments   71254 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
12 Oct 2010
4 Comments   15335 Views
Here Mudassar Ahmed Khan has explained how to Localize Javascript strings or messages using ASP.Net Localization
29 Oct 2010
1 Comments   23305 Views
Here Mudassar Ahmed Khan has explained how to get Absolute Position (Screen Coordinates) of HTML Control using JavaScript.
01 Nov 2010
13 Comments   59934 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.
17 Nov 2010
0 Comments   17557 Views
Here Mudassar Ahmed Khan has explained how to pass JavaScript function or method as parameter argument to another JavaScript function or method
28 Nov 2010
17 Comments   88269 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.
18 Dec 2010
13 Comments   35262 Views
Here Mudassar Ahmed Khan has explained how to check Username availability in SQL Server 2005 database using PageMethods in ASP.Net
28 Dec 2010
0 Comments   25283 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
04 Jan 2011
10 Comments   38214 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.
06 Jan 2011
1 Comments   31551 Views
Here Mudassar Ahmed Khan has described a code snippet to play WAV sound files in ASP.Net using JavaScript
14 Jan 2011
1 Comments   17137 Views
Here Mudassar Ahmed Khan has explained how to build your own simple Hover Menu using jQuery in ASP.Net
31 Jan 2011
10 Comments   59222 Views
Here Mudassar Ahmed Khan has explained how to populate or bind ASP.Net DropDownList using ASP.Net AJAX Page Methods and JavaScript.
17 Feb 2011
6 Comments   62369 Views
Here Mudassar Ahmed Khan has explained how to pass and fetch JavaScript Array to Web Service web method using ASP.Net AJAX Pagemethods.
20 Feb 2011
18 Comments   46357 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.
21 Feb 2011
23 Comments   69300 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
23 Feb 2011
1 Comments   7399 Views
Here Mudassar Ahmed Khan has described how to filter or search for substring in array in JavaScript
23 Feb 2011
3 Comments   76694 Views
Here Mudassar Ahmed Khan has explained how to induce Client side onclick event in ASP.Net TreeView nodes using JavaScript
07 Mar 2011
2 Comments   51553 Views
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
05 Jun 2011
2 Comments   29040 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
05 Jul 2011
6 Comments   43966 Views
Here Mudassar Ahmed Khan has explained how to make AJAX call to asp.net server side web service's webmethod using jQuery
08 Jul 2011
3 Comments   47902 Views
Here Mudassar Ahmed Khan has explained how to implement File size limit validation before upload using jQuery uploadify plugin
10 Aug 2011
6 Comments   57960 Views
Here Mudassar Ahmed Khan has explained how to do validate ASP.Net CheckBox client side using ASP.Net Custom Validator and JavaScript
17 Aug 2011
10 Comments   60849 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
27 Sep 2011
1 Comments   21280 Views
Here Mudassar Ahmed Khan has explained how to dynamically set value of ContextKey for ASP.Net AJAX Control ToolKit AutocompleteExtender using JavaScript
16 Oct 2011
0 Comments   47959 Views
Here Mudassar Ahmed Khan has explained how to get the IP Address of the client machine's using JavaScript and JSON.
03 Nov 2011
0 Comments   12582 Views
Here Mudassar Ahmed Khan has explained how to create and use Enums (Enumeration) in JavaScript.
20 Dec 2011
6 Comments   78270 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.
08 Feb 2012
1 Comments   22808 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 .
11 Feb 2012
19 Comments   93026 Views
Here Mudassar Ahmed Khan has explained how to build a server side Yes/No Confirmation Box using JavaScript and ASP.Net
23 Feb 2012
3 Comments   41344 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.
07 Mar 2012
3 Comments   20652 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.
21 Mar 2012
0 Comments   10518 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.
02 Apr 2012
10 Comments   53420 Views
Here Mudassar Ahmed Khan has explained how to print ASP.Net Panel (HTML DIV) contents with Print Preview using JavaScript.
02 Apr 2012
0 Comments   6673 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
02 Apr 2012
0 Comments   4323 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
03 Apr 2012
0 Comments   18293 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
13 Apr 2012
6 Comments   27956 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.
14 Apr 2012
4 Comments   51936 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.
17 Apr 2012
0 Comments   30461 Views
Here Mudassar Ahmed Khan has explained how to validate email addresses client side in JavaScript using Regular Expressions.
25 Jun 2012
3 Comments   44477 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.
05 Jul 2012
0 Comments   29380 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.
07 Jul 2012
8 Comments   52584 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
21 Aug 2012
6 Comments   71635 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.
30 Aug 2012
3 Comments   14465 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button after login in ASP.Net using JavaScript
01 Sep 2012
15 Comments   62360 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button after user has logged out in ASP.Net using JavaScript
20 Oct 2012
0 Comments   19135 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.
20 Oct 2012
3 Comments   26237 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code how to add Google map in asp.net web page.
30 Oct 2012
21 Comments   208535 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.
07 Nov 2012
2 Comments   22001 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
11 Nov 2012
11 Comments   110189 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to delete row from ASP.Net GridView Confirmation.
03 Jan 2013
1 Comments   19094 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.
04 Jan 2013
35 Comments   544807 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
06 Feb 2013
0 Comments   7767 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.
21 Feb 2013
0 Comments   22016 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
21 Feb 2013
4 Comments   49187 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.
25 Feb 2013
7 Comments   55835 Views
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.
29 Mar 2013
3 Comments   100470 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
01 Apr 2013
8 Comments   66549 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.
07 Apr 2013
14 Comments   516758 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
30 Apr 2013
2 Comments   11962 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.
11 May 2013
0 Comments   19787 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.
06 Jun 2013
1 Comments   7231 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
09 Jun 2013
3 Comments   15105 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
20 Jun 2013
0 Comments   6021 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 and JavaScript in ASP.Net.
21 Jun 2013
4 Comments   41019 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.
21 Jun 2013
7 Comments   35772 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.
26 Jun 2013
0 Comments   29632 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.
27 Jun 2013
0 Comments   4443 Views
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.
30 Jun 2013
0 Comments   12643 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.
11 Jul 2013
6 Comments   57510 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.
11 Jul 2013
2 Comments   6338 Views
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
15 Jul 2013
3 Comments   67825 Views
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.
24 Jul 2013
1 Comments   14278 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.
24 Jul 2013
0 Comments   15338 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
26 Jul 2013
0 Comments   7745 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.
26 Jul 2013
0 Comments   20676 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.
29 Jul 2013
7 Comments   34756 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
29 Jul 2013
2 Comments   13570 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.
31 Jul 2013
8 Comments   82737 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.
31 Jul 2013
5 Comments   85507 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.
02 Aug 2013
6 Comments   51243 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.
05 Aug 2013
5 Comments   60640 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.
17 Aug 2013
2 Comments   35695 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.
21 Aug 2013
1 Comments   34040 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
03 Sep 2013
1 Comments   32851 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.
06 Sep 2013
4 Comments   19123 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.
08 Sep 2013
0 Comments   17472 Views
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.
09 Sep 2013
2 Comments   23659 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.
11 Sep 2013
2 Comments   26607 Views
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.
12 Sep 2013
4 Comments   21554 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.
22 Oct 2013
11 Comments   117197 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.
23 Oct 2013
0 Comments   63344 Views
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.
25 Nov 2013
4 Comments   57391 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.
02 Dec 2013
6 Comments   51491 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.
29 Dec 2013
13 Comments   75615 Views
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.
01 Jan 2014
0 Comments   54734 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.
02 Jan 2014
0 Comments   35798 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
22 Jan 2014
0 Comments   33075 Views
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.
26 Jan 2014
13 Comments   43154 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.
31 Jan 2014
0 Comments   25762 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.
09 Feb 2014
0 Comments   21462 Views
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.
02 Mar 2014
0 Comments   29133 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.
11 Mar 2014
4 Comments   39134 Views
Here Mudassar Ahmed Khan has explained how to detect / find the IP Address of the client / user machine using JavaScript & jQuery.
31 Mar 2014
3 Comments   11060 Views
Here Mudassar Ahmed Khan has explained how to add, include and use JavaScript with Content Pages in ASP.Net.
04 Apr 2014
0 Comments   29200 Views
Here Mudassar Ahmed Khan has explained how to access ASP.Net Global Resource file in JavaScript, thus implementing Globalization in JavaScript strings.
24 Apr 2014
8 Comments   17549 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.
26 Apr 2014
2 Comments   23249 Views
Here Mudassar Ahmed Khan has explained how to solve the issue, ClientScript.RegisterClientScriptBlock and ClientScript.RegisterStartupScript not working in AJAX UpdatePanel in ASP.Net.
26 Apr 2014
0 Comments   15269 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.
23 May 2014
0 Comments   38669 Views
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.
05 Jun 2014
0 Comments   3321 Views
Here Mudassar Ahmed Khan has explained how to prevent users from submitting form by hitting enter using JavaScript in ASP.Net.
22 Jun 2014
0 Comments   108729 Views
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.
23 Jun 2014
0 Comments   9115 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.
27 Jun 2014
1 Comments   32366 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.
11 Jul 2014
0 Comments   18477 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.
11 Jul 2014
2 Comments   10601 Views
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.
16 Jul 2014
0 Comments   7767 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.
18 Jul 2014
0 Comments   7064 Views
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
27 Jul 2014
1 Comments   22223 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.
22 Aug 2014
0 Comments   31522 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.
15 Sep 2014
1 Comments   6314 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.
03 Oct 2014
2 Comments   8871 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.
04 Oct 2014
0 Comments   3572 Views
Here Mudassar Ahmed Khan has explained how to validate Terms and conditions CheckBox using JavaScript and CustomValidator in ASP.Net.
06 Nov 2014
0 Comments   4727 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.
07 Nov 2014
2 Comments   11398 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.
18 Nov 2014
0 Comments   2619 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.
18 Nov 2014
0 Comments   2344 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.
20 Nov 2014
1 Comments   9915 Views
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.
25 Nov 2014
4 Comments   18851 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.
29 Nov 2014
1 Comments   15750 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.
03 Dec 2014
0 Comments   14877 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.
12 Dec 2014
0 Comments   8764 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.
31 Dec 2014
1 Comments   4939 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.
04 Jan 2015
0 Comments   4817 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.
07 Jan 2015
1 Comments   1659 Views
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.
08 Jan 2015
0 Comments   6170 Views
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.
12 Jan 2015
0 Comments   2851 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.
26 Jan 2015
0 Comments   1848 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.
02 Feb 2015
0 Comments   1572 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.
07 Feb 2015
3 Comments   6297 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.
16 Feb 2015
0 Comments   1972 Views
Here Mudassar Ahmed Khan has explained explain how to use and make call ASP.Net AJAX PageMethods using ASP.Net AJAX and ScriptManager.
20 Feb 2015
0 Comments   3782 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.
20 Feb 2015
0 Comments   762 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.
21 Feb 2015
0 Comments   3386 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.
26 Feb 2015
0 Comments   2159 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.
26 Feb 2015
0 Comments   5835 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.
02 Mar 2015
0 Comments   6808 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.
12 Mar 2015
0 Comments   2588 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.
13 Mar 2015
0 Comments   1554 Views
Here Mudassar Ahmed Khan has explained how to remove (delete) multiple selected items from the ASP.Net ListBox using JavaScript and jQuery.
15 Mar 2015
0 Comments   1416 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.
16 Mar 2015
1 Comments   7519 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.
16 Mar 2015
0 Comments   896 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.
16 Mar 2015
0 Comments   1588 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.
20 Mar 2015
0 Comments   977 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.
20 Mar 2015
0 Comments   5140 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.
20 Mar 2015
0 Comments   1048 Views
Here Mudassar Ahmed Khan has explained how dynamically add Rows and Cells in an HTML Table using JavaScript.
23 Mar 2015
0 Comments   2587 Views
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.
24 Mar 2015
0 Comments   1386 Views
Here Mudassar Ahmed Khan has explained, how to perform Numeric (number) validation using TextBox OnKeyPress event in JavaScript.
26 Mar 2015
0 Comments   2855 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.
27 Mar 2015
0 Comments   1170 Views
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.
29 Mar 2015
0 Comments   2188 Views
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.
30 Mar 2015
2 Comments   2359 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.
31 Mar 2015
0 Comments   1762 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.
02 Apr 2015
0 Comments   645 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.
04 Apr 2015
0 Comments   1285 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.
04 Apr 2015
0 Comments   1136 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.
09 Apr 2015
0 Comments   4269 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.
10 Apr 2015
0 Comments   1518 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.
12 Apr 2015
0 Comments   5878 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.
13 Apr 2015
0 Comments   1148 Views
Here Mudassar Ahmed Khan has explained how to get selected Text and Value of HTML Select DropDownList on Button click using JavaScript and jQuery.
13 Apr 2015
0 Comments   1454 Views
Here Mudassar Ahmed Khan has explained how to validate (check) HTML Select DropDownList using JavaScript and jQuery.
15 Apr 2015
0 Comments   1973 Views
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.
15 Apr 2015
0 Comments   1472 Views
Here Mudassar Ahmed Khan has explained how to validate (check) ASP.Net DropDownList using JavaScript and jQuery.
18 Apr 2015
0 Comments   2388 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.
19 Apr 2015
0 Comments   1580 Views
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.
28 Apr 2015
0 Comments   916 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.
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.
28 Apr 2015
0 Comments   1152 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.
01 May 2015
0 Comments   936 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.
04 May 2015
1 Comments   1041 Views
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.
05 May 2015
0 Comments   3172 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.
06 May 2015
0 Comments   1855 Views
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.
07 May 2015
0 Comments   1899 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.
09 May 2015
1 Comments   729 Views
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.
10 May 2015
0 Comments   1189 Views
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.
11 May 2015
0 Comments   853 Views
Here Mudassar Ahmed Khan has explained how to uncheck a CheckBox when another CheckBox inside CheckBoxList control is checked in ASP.Net using JavaScript.
11 May 2015
0 Comments   2079 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.
15 May 2015
0 Comments   1865 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.
18 May 2015
0 Comments   1625 Views
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.
21 May 2015
0 Comments   951 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.
22 May 2015
0 Comments   1120 Views
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.
22 May 2015
0 Comments   1575 Views
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.
24 May 2015
0 Comments   765 Views
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.
24 May 2015
0 Comments   1147 Views
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.
29 May 2015
0 Comments   741 Views
Here Mudassar Ahmed Khan has explained the how to open the Default Email (Mail) Client application in ASP.Net.
29 May 2015
0 Comments   696 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.
31 May 2015
0 Comments   680 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.
03 Jun 2015
0 Comments   886 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.
03 Jun 2015
0 Comments   705 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.
04 Jun 2015
0 Comments   975 Views
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).
12 Jun 2015
0 Comments   1001 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.
15 Jun 2015
0 Comments   1313 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.
15 Jun 2015
0 Comments   1445 Views
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.
18 Jun 2015
0 Comments   603 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.
19 Jun 2015
0 Comments   624 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.
19 Jun 2015
0 Comments   739 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.
21 Jun 2015
0 Comments   871 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.
21 Jun 2015
0 Comments   792 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.
01 Jul 2015
0 Comments   690 Views
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.
03 Jul 2015
0 Comments   618 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.
06 Jul 2015
0 Comments   563 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.
08 Jul 2015
0 Comments   604 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.
08 Jul 2015
0 Comments   539 Views
Here Mudassar Ahmed Khan has explained with an example, how to access child popup window to parent page window using JavaScript.
10 Jul 2015
0 Comments   464 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.
13 Jul 2015
0 Comments   518 Views
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.
13 Jul 2015
0 Comments   781 Views
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.
15 Jul 2015
0 Comments   420 Views
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.
15 Jul 2015
0 Comments   602 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.
24 Jul 2015
0 Comments   396 Views
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.