Advertisement

11.27.2007 at 06:03AM PST, ID: 22984926
[x]
Attachment Details

Causes validation from gridview control

Asked by Mike_Stevens in .Net Editors & IDEs, Visual Studio, WebApplications

Tags: , ,

I have a aspx form that i have created in visual studio 2005 that has a text box and a gridview control.   The text box accepts a value that the user enters.   A validation control ensures that the user enters a value before clicking the add button.   The problem that I am having is that when editing a row in the gridview (when has not bearing on anything being entered in the textbox), the update command of the grid view is firing the validation control for the text box.  

For a button on a form you can set the "Causes validation" property to "false" to prevent this from happening.  Can the same be done for the grid?
Start Free Trial
[+][-]11.27.2007 at 07:49AM PST, ID: 20358722

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Visual Studio, WebApplications
Tags: gridview, validation, control
Sign Up Now!
Solution Provided By: DJFuller
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11.27.2007 at 08:28AM PST, ID: 20359057

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628