tag:blogger.com,1999:blog-6082652835152798567.post1446144659563385905..comments2024-03-28T00:58:12.736-07:00Comments on Sql server, .net and c# video tutorial: CompareValidator control in asp.net - Part 46Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6082652835152798567.post-77728626603590661422017-09-11T03:36:10.711-07:002017-09-11T03:36:10.711-07:00ValueToCompare attribute in used when we have a de...ValueToCompare attribute in used when we have a default value with which we have to compare. Whereas ControlToCompare is used when we are comparing with another controlAnonymoushttps://www.blogger.com/profile/00308644366408663766noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-50881843751172786922016-04-10T02:36:07.509-07:002016-04-10T02:36:07.509-07:00When we use ControlToCompare property as in Passwo...When we use ControlToCompare property as in Password and Retype password example then we have to pass for which control we want to validate as (ControlToValidate) and then to which control you want to compare your Control (ControlToCompare) as in Password example ControlToValidate="txtRetypePassword" and ControlToCompare="txtPassword"<br />but incase of date example as our requirement is DateOfApply should be greater than '01/01/2012' which is a constant value so we used here ValueToCompare="01/01/2012" <br />I hope you will unterstand it.................Anonymoushttps://www.blogger.com/profile/16625292859815723287noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-81338084204642775692016-02-06T17:57:46.215-08:002016-02-06T17:57:46.215-08:00What is the difference between ValueToCompare and ...What is the difference between ValueToCompare and ControlToCompare property in the comparevalidator control? In the Date example, you have used ValueToCompare property, whereas in the String example (like change password) you have used ControlToCompare Property?Sourav Agarwalhttps://www.blogger.com/profile/14197165587084242149noreply@blogger.com