Solved

Possible to put ValidationsGroup's on GridView AND FormView?

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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