Author: NewVBmanZ | Posted on: 6/6/2010 12:44:08 AM | Views : 279

Hello,


I created a grid view control and linked it to sql database and added "edit" and "delete" options. How can I perform validation on the created "update" button ? Basically, I want to be able to make sure the proper fields have been entered before the database gets updated? Also, I would like to be able to display any errors after this validation to a validationsummary control? Below is my sqldatasource code and gridview:


<asp:SqlDataSource ID="SqlDataSource1" runat="server"
         ConflictDetection="CompareAllValues"
         ConnectionString="<%$ ConnectionStrings:CustomersConnectionString %>"
         DeleteCommand="DELETE FROM [Products] WHERE [ProductID] = @original_ProductID AND (([Productname] = @original_Productna ...

Go to the complete details ...