---
title: "Can you set which type of comparison you want to perform by the CompareValidator control?"  
description: "Can you set which type of comparison you want to perform by the CompareValidator control?"  
author: "Sumit Kesarwani"  
published: 2014-08-28  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/2072/can-you-set-which-type-of-comparison-you-want-to-perform-by-the-comparevalidator-control  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Can you set which type of comparison you want to perform by the CompareValidator control?

Yes, by setting the Operator property of the CompareValidator control.

## Answers

### Answer by Sumit Kesarwani

Yes, by setting the Operator property of the CompareValidator control.


---

Original Source: https://www.mindstick.com/interview/2072/can-you-set-which-type-of-comparison-you-want-to-perform-by-the-comparevalidator-control

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
