Solved

Possible to put ValidationsGroup's on GridView AND FormView?

Posted on 2006-07-17
2
234 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

11 Experts available now in Live!

Get 1:1 Help Now