Wednesday, 15 June 2011

asp.net - The ControlToValidate property of 'passwordCompare' cannot be blank -


I am using duplication in my page that can be used to dynamically generate two text boxes. ; I have a comparison of a verifier.

Now for this verifier, I am using ControlTovalidate & amp; ControlToCompare Both IDs will come from two text boxes which are dynamically generated.

So when I force these text boxes to be done again, I am setting both properties of validation but error "ControlloAdvertisement's property 'can not be blank' compared to password."

  & asp: repeater id = "repeater" runat = "server" onitemdatabound = "boundproperty" & gt; & Lt; ItemTemplate & gt; & Lt; Asp: panel id = "panelProperty" runat = "server" cssclass = "prop" & gt; & Lt; Asp: textbox id = "textbox org" runat = "server" cssclass = "edit" view = "wrong" /> & Lt; / ASP: Panel & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt; & Lt; Asp: comparevalidator id = "passwordCompare" runat = "server" controltovalidate = "" controltocompare = "" errormess = "comparison wizard" & gt; & Lt; / Asp: comparevalidator & gt;  


No comments:

Post a Comment