Solved

Possible to put ValidationsGroup's on GridView AND FormView?

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

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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