I have done the same thing with the Drop Down List.

In this article I will discuss some of the features of the Export Button and how it benefits the developer.

Validating Text Box or any other input control using Java Script is one of the very common task we do in your ASP. What if we have to validate the Text Box inside the Gridview using Java Script?

I am attempting to determine how best to prevent a users date entry in an update action from causing a format exception. If I wanted to set up JSCRIPT validation, whats the best way to acheive this ? 3.) Add an attribute("onkeypress","your Date Format Validation Fu nction"); I still need to validate on the server that the actual date exists, but thats not going to be too troublesome. I am attempting to determine how best to prevent a users date entry in an update action from causing a format exception. If I wanted to set up JSCRIPT validation, whats the best way to acheive this ? The dates are UK, but the user may try to put in a 'US' format. I dont neccesarilly need fine detail, but a broad brush roadmap of what to do and Ill work it out from there. Set the 'operator' (properties window) property to Data Type Check.

The dates are UK, but the user may try to put in a 'US' format. I dont neccesarilly need fine detail, but a broad brush roadmap of what to do and Ill work it out from there. The dates are UK, but the user may try to put in a 'US' format. I dont neccesarilly need fine detail, but a broad brush roadmap of what to do and Ill work it out from there. I have a datasource which is wired to my DAL/update function. You can use this in conjunction with a Range Validator to filter on the required period if applicable.

This is because the Text Box is in the Edit Item Template and that is what we need to validate.

If you put the Required Field Validator in any Item Template or any other Template supported by Grid View you will recieve an error saying that Grid View is unable to find the control to validate.

Now, you can easily set the Required Field Validator's Initial Value property to "Select an item" or whatever your text was which means that you cannot leave the control whose value or text property is "Select an item" or the text set by you.

You will also notice that when you loose focus from the control the validation control event will be fired.

Here we are going to see How to validate the Text Boxes inside the Gridview using Java Script.