Validating number in asp net Adult chat lavender
Now practice your newly learned skills on your own and experiment with the error provider control! NET 2.0 Grid View control allows us to quickly edit and delete records.You do not have to disable the Form’s Auto Validate property.However, I prefer to call it explicitly and handle all validation at once since you most likely will take action only if the entire control’s children pass validation. The most important thing to recognize here is how precise you can be with the validation error message in the error provider.You can not attach validation controls directly to these Text Boxes.We need to convert these Bound Fields to Template Fields.Here, we set the Data Source of the Grid View to Sql Data Source1. We also enable paging, sorting and editing features of the Grid View.
Enter the database details as per your setup and click on OK.In order to do so select "Edit Columns..." from the smart tag of the Grid View. Select Company Name and Contact Name fields and click on "Covert this field into a Template Field" link.This will convert them from Bound Field to Template Field.Now from the smart tag of the Grid View choose "Edit Template" and then select "Edit Item Template" of Company Name column.This will display the template designer for the column as shown in Figure 6.
Next, drag and drop a Required Field Validation control below the Text Box.