Solved

Causes validation from gridview control

Posted on 2007-11-27
2
2,618 Views
Last Modified: 2013-11-26
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?
0
Comment
Question by:Mike_Stevens
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
DJFuller earned 500 total points
ID: 20358722
Yes,

Edit collumns on the gridview and click on the edit, insert, update field at the bottom of the list.

In the properties > behavior section is the "Causes validation" where you can set it to false.

0
 
LVL 7

Expert Comment

by:Chandan_Gowda
ID: 20359057
If you dont have validators inside the gridview then set causes validation as false for the update button which is inside the gridview
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How can I do Unit Testing with Session ? 1 41
VB.Net SQL Query 2 Tables Different Databases 3 59
T-SQL and CLR parameter strings 9 62
Adjust the codes 3 62
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question