Here Mudassar Ahmed Khan has explained how to display loading GIF image when ASP.Net AJAX Control Toolkit AutoCompleteExtender Control makes a call to the the server to search the records and hide the image when the records are populated using JavaScript.

Here Mudassar Ahmed Khan has explained how to fix the issue of repetition of JavaScript code when a WebUserControls is used multiple times on a same page. This repetition causes the JavaScript methods to stop working. This article explains how to resolve this issue.

Here Mudassar Ahmed Khan has explained how to dynamically freeze header or make the header fixed of ASP.Net GridView control using JavaScript. This is a cross browser solution and works in all new browsers including Internet Explorer 8 (IE8) Chrome FireFox Opera and Safari. This is a unique solution where you dont need to do anything the script will automatically convert your GridView to a scrollable grid with fixed headers

Here Mudassar Ahmed Khan has explained how to Detect ASP.Net Asynchronous PostBack and its settings like control and UpdatePanel that caused PostBack and the using PageRequestManager Events in JavaScript

Here Mudassar Ahmed Khan has explained how to 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 rotate images or pictures automatically using timed image swap technique in which image is swapped (changed) every specific interval. He has used JavaScript setInterval function at act as a timer which will swap images at regular intervals.

Here Mudassar Ahmed Khan has explained how to disable or prevent Cut, Copy and Paste operations and in HTML Input TextBox and TextArea and ASP.Net Single and MultiLine TextBox using JavaScript. The solution provided disables the Cut, Copy and Paste operations in both cases that is using CTRL key as well as using browser context menu.

Here Mudassar Ahmed Khan has explained how to get the ASP.Net GridView Row and its RowIndex client side using JavaScript. He has also explained how we can find the GridView Cells and the controls inside the GridView Template Fields client side using JavaScript.

Here Mudassar Ahmed Khan has explained how to get the ASP.Net GridView SelectedRow and its RowIndex client side using JavaScript. He has also explained how we can find the GridView Cells and the controls inside the GridView Template Fields of the GridView SelectedRow client side using JavaScript.

Here Mudassar Ahmed Khan has explained how to persist JavaScript objects and variables across PostBacks or in other words Form Submissions in ASP.Net. He has explained with a help of an array variable. Though the example is in ASP.Net it can be used for other technologies also.

Here Mudassar Ahmed Khan has explained how to create a validation filter for FileUpload control in order that it allows upload of only files with specific extension. Example for Word documents it will filter *.doc and *.docx extension, for Excel files it will flter *.xls and *.xlsx extensions.The validation done here is dual i.e. both server side and client side.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to delete rows or records from GridView with JavaScript Confirmation Box using CommandField and OnRowDeleting event in ASP.Net

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to disable or prevent Cut, Copy and Paste operations and in HTML Input TextBox and TextArea and ASP.Net Single and MultiLine TextBox using JavaScript.

The solution provided disables the Cut, Copy and Paste operations in both cases that is using CTRL key as well as using browser context menu using Mouse Right click.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to Highlight GridView row i.e. change its row background color on mouseover or when checkbox is checked using JavaScript

Here Mudassar Ahmed Khan has provided a short code snippet with an example and attached sample code, for how to find Latitude and Longitude for a given location using its address by making use of Google Maps API V3 (Version 3) and JavaScript.

Here Mudassar Ahmed Khan has explained the JavaScript error ( bobj is undefined ) that occurs when an ASP.Net Crystal Report 13 application developed in Visual Studio 2010 is hosted on server in IIS server.Due to this error the Crystal Report Viewer is not rendered and we see a blank page.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to show or display a JavaScript Alert Message Box and then redirect user to another page or website after he clicks OK Button in ASP.Net Website using C# and VB.Net.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to 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, explain how to implement check uncheck all or select unselect all functionality for CheckBox in GridView ItemTemplate and HeaderTemplate using jQuery and JavaScript.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to change or highlight GridView Row Background Color on MouseOver ( Hover ) using jQuery in ASP.Net.This is done by attaching jQuery Mouseover event handler to GridView Row Cells, thus when a Mouse is hovered over GridView Row or Cell its background color is changed thus making it look highlighted.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to highlight GridView Row when clicked.Here using jQuery and JavaScript, a client side click event handler is attached to the GridView Row and when the row is clicked its background color is changed so that it looks highlighted.

Here Mudassar Ahmed Khan has explained with an example and attached sample code, how to highlight ASP.Net GridView Row Color on Mouseover using jQuery in ASP.Net.In order to implement GridView Row highlighting or change, jQuery Hover event handler is used, so that when mouse is moved over GridView Row its background color is changed so that the GridView Row looks highlighted and when mouse is moved out its color is changed back to normal like other GridView Rows.

Here Mudassar Ahmed Khan has explained, how to check and uncheck all (select unselect or deselect all) child node CheckBox or CheckBoxes of ASP.Net TreeView control using JavaScript and jQuery.

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

The script provided in this article works in dual way i.e. it Checks unchecks child CheckBoxes when parent CheckBox is checked or unchecked. While when all the child CheckBoxes are checked then the Parent CheckBox is checked and when even one Child CheckBox is unchecked the Parent CheckBox is unchecked.

Here Mudassar Ahmed Khan has explained, how to restrict user from entering special characters in TextBox using JavaScript or in other words remove special characters from TextBox using JavaScript as user types into the TextBox.

The script works in such a way that the TextBox will accept only alphabets, numbers i.e. alphanumeric values with some allowed special keys, thus unless a special character key has been specified to be excluded it won’t be accepted.

Here Mudassar Ahmed Khan has explained, how to allow only Alphanumeric character values i.e. Alphabets and Numbers with Space character in TextBox using JavaScript.

The script works in such a way that the TextBox will accept only alphabets, numbers i.e. alphanumeric values with space character, thus unless a special character key has been specified to be excluded it won’t be accepted.

Here Mudassar Ahmed Khan has explained, how to change TextBox Background color on Focus CSS and without any JavaScript or jQuery i.e. Highlight TextBox on focus using CSS and without any JavaScript or jQuery and set it back to default on blur

Here Mudassar Ahmed Khan has explained how to display Progress Indicator Bar in ASP.Net AJAX Control Toolkit AutoCompleteExtender Control using loading GIF image when it makes call to the server to search the records and hide the image when the records are populated using JavaScript.

Here Mudassar Ahmed Khan has explained how to validate ASP.Net CheckBoxList control using Custom Validator and perform at least one CheckBox Checked Validation in it. The ASP.Net Custom Validator will make us eof JavaScript function to validate the CheckBoxList control.

Here Mudassar Ahmed Khan has explained how to search GridView records (data) on TextBox KeyPress event using jQuery in ASP.Net.

In order to search GridView records (data) on TextBox KeyPress event, I am making use of jQuery QuickSearch Plugin which dynamically searches the GridView cells and filters out the unwanted rows and displays only the records (data) that matches the input search term.

Here Mudassar Ahmed Khan has 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

The HTML 5 Canvas charts have been implemented using the free Chart.js library to which JSON object is supplied as source of data. This article also covers procedure to display the animated HTML5 chart in browsers that do not support CSS3 like IE 8.

Here Mudassar Ahmed Khan has explained how to 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 allow website visitors to change i.e. increase or decrease font size of text using JavaScript and jQuery.He has shown how to change i.e. increase or decrease the font size of text of whole page or particular section or part of page using JavaScript or jQuery

There are multiple monitor dimensions and resolutions, thus sometimes users find it difficult to read the information and hence they can use this feature to increase or decrease font size of the text for improved readability.

Here Mudassar Ahmed Khan has explained how to dynamically change the error message of ASP.Net Custom Validator using JavaScript.

In order to illustrate the functioning with an example, I have created a simple form where a person has to enter either Phone Number or Cell Number and based on what he chooses the validation message of the ASP.Net CustomValidator is dynamically changed using JavaScript.

Here Mudassar Ahmed Khan has explained how to display a modal popup window using window.open method in JavaScript. JavaScript already has ShowModalDialog function but it does not work in all browser and hence I have come up with a trick where using Modal DIV background we can freeze the Parent Page content until Modal Window is closed.

Here Mudassar Ahmed Khan has explained how to call JavaScript function from code behind using ClientScript.RegisterStartupScript before redirect to another page in ASP.Net using C# and VB.Net.

Since JavaScript function will get called only when the page is rendered while Response.Redirect will end the page response and hence we need to make use of JavaScript redirection using window.location method.

Here Mudassar Ahmed Khan has explained how to find and access a control such as TextBox, Button, DropDownList, RadioButton, etc. placed inside a UserControl or in other words WebUserControl (ASCX) from Parent Page (ASPX) using JavaScript in ASP.Net.

When a Control is placed inside a UserControl its ID changes when it is rendered as an HTML element and hence we need to first find the control and then determine its ClientID in order to access the control using JavaScript.

Here Mudassar Ahmed Khan has explained how to display images in GridView with LightBox effect whenever user clicks on images in ASP.Net using C# and VB.Net.Thus building an Image Gallery using GridView with image enlarge feature whenever user clicks on the image.

Here Mudassar Ahmed Khan has explained how to print HTML DIV content without opening new popup window using JavaScript.

The traditional method to print HTML DIV content is to open a new popup window and write the contents to it and finally call the Print command. Thus in this article I will explain how to get rid of the popup window and print the DIV content.

Here Mudassar Ahmed Khan has explained how to draw a route between user’s current location and the specified location on Google Maps V3.

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

Thus now we can easily draw route between the two locations using the Google Maps Routing API.

Here Mudassar Ahmed Khan has explained how to check (validate) File (Image) size before upload using JavaScript and jQuery.

HTML5 allows developers to access the file contents and details using JavaScript and jQuery and hence in browsers that support HTML5 one can easily determine the size of the File.For browsers that don’t support HTML5 have to use jQuery Flash plugins like Uploadify.

Here Mudassar Ahmed Khan has explained how to read, parse and display a CSV file (Comma separated Text file) selected in FileUpload control (HTML File Input) on client side using JavaScript, jQuery and HTML5.

HTML5 allows developers to access the file contents and details using JavaScript and jQuery and hence in browsers that support HTML5 one can easily read the file contents.

Here Mudassar Ahmed Khan has explained, how to perform Numeric validation in TextBox on KeyPress using JavaScript in such a way that the TextBox will accept only numbers i.e. numeric values or digits in TextBox.

Here Mudassar Ahmed Khan has explained how to clear ASP.Net FileUpload control using JavaScript and jQuery. ASP.Net FileUpload control is actually HTML Input File element which is ReadOnly i.e. one cannot modify its value on Client Side using JavaScript or jQuery.

Hence he has created a clone of the original control and replaced it with new one in order to clear ASP.Net FileUpload control on Client Side using JavaScript and jQuery.

Here Mudassar Ahmed Khan has explained how to print Crystal Report on Client Side on Button Click using JavaScript in ASP.Net. This solution will work printing for Crystal Reports version 13 generated with Visual Studio 2010, 2012 and 2013 in ASP.Net.

Here Mudassar Ahmed Khan has explained how to 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.

Nikita
Mudassar Khan is an adept at his field. His code reverberates in mind once read.

FLEITES
Maestro-Teacher Thank you very much for your tutorials!

Nandhini Prince Muthu
Your code is more easy to learn and know.

Nabil Elibairy
Very good detailed step by step with explanation of every how and why. We appreciate your sincere willing to teach.

Davinder Singh
This is superb website provides almost any code required to create a professional website.

Nick
Nice guide.The only working guide to do this I have found (that doesn't use MVC).

Ariba Ahmed
Its best guidance for me and for my husband...

Faizan
Thanks Mudassar. This code helped me a lot.Thank you once again. I refer lots of code from your article but I was not getting time to say you thanks.Today I am really appreciating your work.

Ashutosh Ojha
Your every topic is very helpful and easy to understand.

Julio Uresti
Excellent I have been looking for a sample of this.Your explanation and example are so clear and straight forward.You should write support docs for Microsoft’s user guides.

Alexis
Wow. Thank’s your articles are very GOOD!!!

Vikash
Your post are more helpful compared to the lectures of our colleges.

Wayner
Very clear and direct. I needed a model and your crystal clear model provided the framework I needed.

Thank you and nice work

Willfred
You are simply awesome Mudassar Khan.....Thank you very very much :)

matteo
I lost days and hairs on an issue... You saved me from a mental disease .I am not sure I found this page in time to be saved but it helped to solve my ASP.Net trouble.

Cheers from Italy

Katheeja
This site is like Google for asp.net developers. Simple and worthy..

Furqan
Amazing website, Great articles, To the point content.Keep up the good work.

Jeff
You are awesome Thank you very much for that after hours of searching for a solution I have found this site and it has solved my problem perfectly

Keep up the good work

Dmitry
Man I am really very grateful to you The only short and 100 functioning example in the web.

Suma
I will recommend this site to all my friends and juniors..Best site keep it up...

vikram parmr
This is the superb site ever found so cool. It’s an amazing thing has been started by khan sir salute to you.

Juan Elizalde
I just want to say thank you, I am an active visitor of your site and it is really useful, I work as a Software Consultant in Mexico.Congratulations because you help people and the world to change using technology.

samruddhi
Really awesome and very helpful site ever.....

Shadab Beg
Dear Mudassar your website is very very helpful and very easy to understand.Thanks a lot for helping us.

Xanunja Bishop
Thank you very much.

Your articles are awesome.

Abhinav Kapoor
I have only one thing to say This is the best website I have ever seen in my life ....You are doing a good job buddy please keep it up....Fabulous, Awesome, Tremendous, Marvelous and Extraordinary Work.

Anestin Femi
This site really makes things very easy.

Lita Pierce
Golden piece of code I appreciate that you have taken a bit of time pulling this together and I just wanted to say THANK YOU MAN. Good work and keep posting.

JK
This is the most useful .Net site I’ve found - I love it. Thank you for sharing all these tips and tricks.

Alok Kushwaha
Dear Sir .You are hero of ASP.Net.

Khwaja Mohammad Sayem
Thank you very much for your "Enlarge Image View in ASP.Net GridView". Two days I have spent for this solution.Thanks from heart once again.

Raymond Moore
You just saved me a weeks worth of work. This is an excellent guide and works just like in the demo. I especially like the way you used SQL paging and avoided querying the same data twice by using a temp table.

Mahmoud
I would like to thank you for this site. It is good site for learning.

Aman Jain
Sir you are doing really nice work. I have learnt lot of things from your website and the way you present source code and demo is really wonderful.Thank you very much sir.Keep it up.

Mohammed Darwish
I’d like to extend my deep appreciation to you Mr. Mudassar Ahmed Khan for such educational site. Your codes are really a big support to the development community. Simple, Straight forward and Efficient.May Allah reward you here and hereafter for every programming problem you solved for someone somewhere around the globe?

Sameer Idris
I have to admit it you are great. I found solutions to my ASP.NET problems two times during the last 2 days.Thank you very much.

Keyvan ARYAEE
DearJust PREFECT! I can't say other thing.

Best for your TEAM.

Lucy Kay
This is so amazing. I just used this at my new job. You are amazing Thanks for what you are doing.

Iron
You are number one. Thanks.

Umesh
This is very nice and informative website for students, freshers as well as for employee also.Thanks.

Mary Ticong
It’s really fantastic ThanksKeep on making this amazing tutorial It’s a great help for us beginners...

Rupesh
Thanks a lot your articles are very nice. It will help the learners a lot.

Javed Ahmad
I have always visited many times your site and always find Something new for Self as Software Engineer your site is very very useful for Dot Net Platforms user Allah mercy have on you always.

ayman
Ahmed KhanurGREAT.

Anonymous
Great site. Great experience. Well done.

Vasid qureshi
I always refer ASPSnippets. Its awesome.

Dhruv
Nice work ASP Snippets team... Keep it up.Your methods of explanation are in simple language even non IT person can understand quickly...

Aditya
Hey MudassarAll your snippets have been very useful. Thanks a Ton buddy.

Anonymous
I have to admit it you are great. I found solutions to my ASP.NET problems two times during the last 2 days.Thank you very much.

Pavan Kumar Akula
All the best answers for my questions comes from this site.

Thanks a ton

thabo
Mudassar Ahmed Khan your articles are really above excellent.

Keep up the good work

Shoni
Since i started using this site i have gained a lot of experience in C and VB.net as i am currently working on both of them.This is the best and the explanation is clear. Keep the good work.Thumbs Up.

Syed Jalal Tashrrifullahi
The sheer brilliance of Mudassar inspires me. Another great article showing how simplicity is can be REALLY effective.

Prerna Mishra
Hello sir,I am a frequent user of your blog and honestly i have learnt a lot. Thank you so much for your excellent writing.Thank you so much!

Jagdish
Please add articles like this.Your all articles are very useful covers most of …THANK YOU.

Vishant
Your code is very helpful and usable..Thank you for giving help for code and wish to always help us like this.Vishant

Rahul
You are doing very good things I am very happy with your application.All examples are very helpful to me.Thanks Sir.

Avinava Basu
You are the best dude. I mean I have been following you for quite sometime now and I find you have a way of making others understand with basic simple coding techniques. Way to go bro.

Doug
Just want to thank you very much for this article. I have spent hours searching for a solution to a very similar page I am building and I was giving up hope on getting it to work.Thanks to this page and this site.

Mayur Nagavadiya
Thank you sir.After visiting your blog now i understand the concept of procedure it is very good for fresher.Once again Thanks a lot......

Kabindra Sarma
Thanks Mudassar bhai for your valuable articles. Your articles really help developers a lot. I only prefer to follow your articles only. Keep on helping like this. You are the genius.

Emmanuel
I have read many of your post and they have helped me alot. Thanks Khan.

EC
Great website great articles! This is a good site for both newbies and experience developers. It helps me achieve dome very changing tasks in a short period of time.

Faizan
Thanks Mudassar. This code helped me a lot.Thank you once again. I refer lots of code from your article but I was not getting time to say you thanks.Today I am really appreciating your work.

Prasad
Your articles are of great help to students of .NET technology. Great job.

Abhijit
You are Legend my friend.

Petros
The simple ones are the best just plug in a few lines of code and it does the job complete as well demo and source available

Gerson Cardoso
Dear Mudassar your articles are a great source of information for me. Id like to say thanks for this great site.

Pankaj Sankhla
Hi brother your all post on ASPSnippets are awesome....I really appreciate your work...This is a great tribute for fresher and beginners. Thanks brother for your so nice work and thinking...

Azeem Ahmed
This website is very useful for me. Whenever i got stuck in my ERP application while coding my second thought will be at ASPSIPPETS.....I am very thankful to the great, logical, talented, creative etc.Mudassar Khan

Anidesh Madhav
All your example are very helpful. Simple and easy to understand as well.

George
Just learning ASP.Net and have to Google many times for solutions. Your samples are consistently the best and easiest to understand. This print sample is a good example. No frills just direct solutions to specific problems.Thank you