Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Possible to put ValidationsGroup's on GridView AND FormView?

Posted on 2006-07-17
2
Medium Priority
?
243 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

926 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