Category - JavaScript
3 Comments   26252 Views
Here Mudassar Khan has explain how to build popus using javascript in asp.net
4 Comments   159768 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
0 Comments   31574 Views
Here Mudassar Ahmed Khan has explain how to check whether username is alread exit
1 Comments   38826 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   8842 Views
Here Mudassar Ahmad Khan explain how to Disable Right Click in Browsers using javascript
0 Comments   15554 Views
Here Mudassar Ahemad Khan described how to build your own Ajax Enabled Grid using JavaScript
21 Comments   103697 Views
Here Mudassar Ahemad Khan Explain how to validate textbox using Javascript
13 Comments   54652 Views
Here Mudassar Ahmed Khan has described how to create your own watermark TextBox using JavaScript.
19 Comments   85484 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   62701 Views
Here Mudassar Ahmed Khan has explained how one can validate date without using any Custom Validator or Regular Expression using JavaScript
47 Comments   185834 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
1 Comments   37481 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button functionality in ASP.Net using JavaScript
7 Comments   62915 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   18745 Views
Here Mudassar Ahmed Khan has explained how prevent users from pasting or typing text in FileUpload control in ASP.Net using JavaScript
35 Comments   470361 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   40875 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
11 Comments   84712 Views
Here Mudassar Ahmed Khan has explained How to use JavaScript with Master Pages in ASP.Net
25 Comments   89969 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   98517 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net RadioButtonList Control
12 Comments   65745 Views
Here Mudassar Ahmed Khan has explained the concept of using JavaScript with ASP.Net CheckBoxList Control
30 Comments   160646 Views
Here Mudassar Ahmed Khan has explained how to display messagebox in ASP.Net using Server Side Code using JavaScript
0 Comments   14872 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   79715 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   10987 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   27927 Views
Here Mudassar Ahmed Khan has explained how to localize string messages in JavaScript using ASP.Net Localization and Resource files
44 Comments   108585 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   16456 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   72839 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   15435 Views
Here Mudassar Ahmed Khan has explained how to Localize Javascript strings or messages using ASP.Net Localization
1 Comments   23671 Views
Here Mudassar Ahmed Khan has explained how to get Absolute Position (Screen Coordinates) of HTML Control using JavaScript.
13 Comments   61905 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   18040 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   91791 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   35731 Views
Here Mudassar Ahmed Khan has explained how to check Username availability in SQL Server 2005 database using PageMethods in ASP.Net
0 Comments   26221 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   39202 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   32822 Views
Here Mudassar Ahmed Khan has described a code snippet to play WAV sound files in ASP.Net using JavaScript
1 Comments   17353 Views
Here Mudassar Ahmed Khan has explained how to build your own simple Hover Menu using jQuery in ASP.Net
10 Comments   61047 Views
Here Mudassar Ahmed Khan has explained how to populate or bind ASP.Net DropDownList using ASP.Net AJAX Page Methods and JavaScript.
6 Comments   64007 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   47355 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.
23 Comments   70762 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   7481 Views
Here Mudassar Ahmed Khan has described how to filter or search for substring in array in JavaScript
3 Comments   77951 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
2 Comments   29528 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   44855 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   62506 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   48472 Views
Here Mudassar Ahmed Khan has explained how to get the IP Address of the client machine's using JavaScript and JSON.
0 Comments   13030 Views
Here Mudassar Ahmed Khan has explained how to create and use Enums (Enumeration) in JavaScript.
6 Comments   80208 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   23226 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   95441 Views
Here Mudassar Ahmed Khan has explained how to build a server side Yes/No Confirmation Box using JavaScript and ASP.Net
4 Comments   42568 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.
3 Comments   20946 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   10664 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.
10 Comments   54783 Views
Here Mudassar Ahmed Khan has explained how to print ASP.Net Panel (HTML DIV) contents with Print Preview using JavaScript.
0 Comments   6736 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
0 Comments   4376 Views
Here Mudassar Ahmed Khan has explained how to parse and convert JSON string to JSON object using JavaScript eval function.
0 Comments   18394 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
6 Comments   29511 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   52878 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.
3 Comments   45079 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   30207 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.
8 Comments   53664 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
6 Comments   74328 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   14734 Views
Here Mudassar Ahmed Khan has discussed how to disable browser back button after login in ASP.Net using JavaScript
15 Comments   63885 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   19334 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   26634 Views
Here Mudassar Ahmed Khan has explained with an example and attached sample code how to add Google map in asp.net web page.
21 Comments   215142 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.
2 Comments   22416 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 Comments   115814 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   19653 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.
36 Comments   552318 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   7917 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   22771 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   50914 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   105307 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
8 Comments   68548 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.
14 Comments   521952 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   12336 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   20550 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   15596 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   41513 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.
7 Comments   37416 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   30535 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   12927 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   59662 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   14391 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   15566 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   7824 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   21187 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   36868 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   14043 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.
8 Comments   85081 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.
5 Comments   89095 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.
6 Comments   53504 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   63020 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   36971 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   35580 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   34096 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   19612 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   24252 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.
4 Comments   22782 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.
11 Comments   122434 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   60675 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   54898 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   56514 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   37079 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.
13 Comments   44932 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   26711 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   30781 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   40537 Views
Here Mudassar Ahmed Khan has explained how to detect / find the IP Address of the client / user machine using JavaScript & jQuery.
3 Comments   11750 Views
Here Mudassar Ahmed Khan has explained how to add, include and use JavaScript with Content Pages in ASP.Net.
0 Comments   30020 Views
Here Mudassar Ahmed Khan has explained how to access ASP.Net Global Resource file in JavaScript, thus implementing Globalization in JavaScript strings.
8 Comments   18772 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   15547 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   3371 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   9286 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.
1 Comments   35434 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   19593 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   8243 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   7822 Views
Here Mudassar Ahmed Khan how to add multiple line breaks (<BR />) to JavaScript Alert message box.
1 Comments   24007 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.
0 Comments   34184 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.
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.
2 Comments   9820 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.
0 Comments   5166 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.
2 Comments   13043 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   2820 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   2629 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   22614 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.
1 Comments   18992 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.
0 Comments   17020 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   10119 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   6078 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   5419 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   3210 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   2041 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   1642 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.
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   2295 Views
Here Mudassar Ahmed Khan has explained explain how to use and make call ASP.Net AJAX PageMethods using ASP.Net AJAX and ScriptManager.
0 Comments   4974 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   803 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   4006 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   2775 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.
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   8680 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   3307 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   1832 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   1746 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.
1 Comments   10119 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   947 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   1801 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   1147 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   7007 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   1160 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   1778 Views
Here Mudassar Ahmed Khan has explained, how to perform Numeric (number) validation using TextBox OnKeyPress event in JavaScript.
0 Comments   3774 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   3443 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   2400 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   715 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   1591 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   1331 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   6956 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   2414 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.
0 Comments   10907 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.
Here Mudassar Ahmed Khan has explained how to validate (check) HTML Select DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to get Text and Value of selected Item (Option) of ASP.Net DropDownList on Button click using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to validate (check) ASP.Net DropDownList using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to get and then validate (check) dimensions (Height and Width) of Image file before upload using HTML5, JavaScript and jQuery.
HTML5 allows developers to access the file details such as Height and Width using JavaScript and jQuery.
Here Mudassar Ahmed Khan has explained how to count the characters of TinyMCE Rich Text Editor and also implement Character Limit validation i.e. limit the number of allowed characters for TinyMCE editor using JavaScript.
Here Mudassar Ahmed Khan has explained with example how to display (show) JavaScript Alert message box on Button click using AngularJS ng-click directive.
AngularJS makes use of global variable named $window which is a reference of the JavaScript window object in order to access the JavaScript window functions such as Alert.
Here Mudassar Ahmed Khan has explained how to display (show) JavaScript Confirm dialog box on Button click using AngularJS ng-click directive.
AngularJS makes use of global variable named $window which is a reference of the JavaScript window object in order to access the JavaScript window functions such as Confirm.
0 Comments   1100 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   4598 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   3407 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   3447 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   2247 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.
0 Comments   1355 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   899 Views
Here Mudassar Ahmed Khan has explained the how to open the Default Email (Mail) Client application in ASP.Net.
0 Comments   815 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.
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   1078 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   821 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).
0 Comments   1835 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   1652 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   851 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   910 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   861 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   1378 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   995 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   957 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   706 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   839 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   713 Views
Here Mudassar Ahmed Khan has explained with an example, how to access child popup window to parent page window using JavaScript.
0 Comments   666 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   989 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   494 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   680 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   556 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   907 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.