Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

GridView CompareValidator Fails

Dear Experts,
I have a GridView inside a panel (see submitted code) with a CompareValidator in a template field. However, when I enter a value that should cause an error and click on Update, it simply accepts the value and saves the record. I have a similar CompareValidator in another GridView on the same page (but not within a panel) and it works fine. Any ideas?
Thanks.
MCallas
0
MCallas
Asked:
MCallas
1 Solution
 
CodeCruiserCommented:
0
 
MCallasAuthor Commented:
CodeCruiser,
Thanks for the links, though I had already read the first link before you sent it. In fact, I have spent several hours today reading and looking for a solution for my particular problem. I know how to add validation to the GridView. In fact, validation in one of the GridViews is working just fine. However, two other GridViews on the same page that are set up identically don't work. The two that don't work are inside Panel controls, and I was hoping someone could shed some light on this. I only resort to asking questions when my diligent research comes up empty for the problem at hand. I know that sometimes a link can lead to a solution, but in this case, neither one did.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Bob LearnedCommented:
These are the kinds of problems that are difficult to troubleshoot from a distance, especially since we don't understand your page, and what happens over the entire life-cycle.  

Since you have a working CompareValidator, you don't need to understand how they work, so the focus should be on shedding some light on what is the difference between the working, and non-working validators, and what type of validation that you are working with.
0
 
MCallasAuthor Commented:
TheLearnedOne,
Thanks. Your comment makes perfect sense. I appreciate your input and understand now why this question has received so little attention.
MCallas
0
 
CmdoProg2Commented:
MCallas, Could you send the submitted code?  I cannot find it on this question.

"I have a GridView inside a panel (see submitted code) with a CompareValidator in a template field"

Thanks
0
 
MCallasAuthor Commented:
TheLearnedOne,
I had removed all but the working validator last week. Today, when I added the same validators to the other GridViews, I was careful to duplicate the original with the exception of the control ID's. Everything works as expected. Thanks again for your insight.
MCallas
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now