
The following javascript function will help you to trim an input string.

The following javascript function validates the user input for numeric characters.

Sometimes we require a default button control in asp.net application, so that if user hits the enter key then default button events should get fire.

The folloing code snippet describes how to convert an array to a comma seperated string.

I have seen many times developers get confused when they want to select a particular item in the dropdown list, based on the text using C#.


Following block show you how to use condition inside HTML.

Custom error mode setting has 3 possible values: On, Off, and RemoteOnly. The customErrors tag must be placed within tags.

The following code will prevent the web page from being cached by the Client Browser. Use this code in pageload.
We can prevent SQL Injection Attack, many ways. Here we will see how to prevent SQL Injection attack, making use of Global.asax. The code is in C# and using VS2005. Use the following code in Global.asax page. All you need to do to copy and paste the code in your Global.asax page.

I have seen codes where developers used so many to get the desire location in html page.This can be easily avoided by using padding concept inside.


I got the Mindcracker Most Valuable Professional Award from C# Corner and Mindcracker Network web sites. I have received the confirmation mail from Praveen yesterday

In this blog we will see how to pass a variable value from one form to other.

This code will useful for validating zip Code, telephone no where we have to enter only numbers in textbox. We can write javascript to check it or we also can use regular expression to do so. This is just another method to check it.

The following code will help you to display a flash image in html page.

The following piece of code can be used in textbox keypress event to restrict user to enter only numbers.

The following javascript code will help you to open a model window and you also can change the screen position of the window by altering ‘x_left’ and ‘y_top’ values.

Pass the input text in following javascript function and it will convert the input text in money format.

The following javascript function will validate special character from Textbox.

The following java script function will validate format of e-mail. Pass the e-mail which will enter in textbox by the user in following function.

The following javascript code will disable browser back button functionality in Mozilla.

The Blog will describe how to disable browser back button functionality using Pagebehind(C#)


DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article