Solved

Possible to put ValidationsGroup's on GridView AND FormView?

Posted on 2006-07-17
2
235 Views
Last Modified: 2010-05-18
Hello - I worked up a page, with one <form> and one DataSource, that has a GridView to do update's and delete's, and then a FormView below that to do insert's. Everything was working as expected.

Then I added validation controls to each control on the FormView that needed one, and a ValidationSummary control to group them together. Still working fine.

Then I went back and added a ValidationGroup attribute to each validation control, and the LinkButton that triggers the insert. Now when I click that LinkButton, nothing happens at all.

I tried adding the same ValidationGroup attribute to the data controls also; still no help

I checked the LinkButton; CausesValidation is set to True

I took all the ValidationGroup attributes back out, and it works fine again.

Any ideas what I'm doing wrong?

Thanks

Mark
0
Comment
Question by:mlagrange
2 Comments
 

Author Comment

by:mlagrange
ID: 17129019
I found the problem - I had not tagged the ValidationSummary control with the ValidationGroup. When I went back and fixed that, it worked fine.

FWIW, this page now has separate sets of validation controls, a ValidationSummary, and a ValidationGroup for both the GridView and FormView, and it's working fine.
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 17135111
Closed, 500 points refunded.
kb
Experts Exchange Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now