Click to See Complete Forum and Search --> : ASP NET Validation Control


shalini-sb
August 23rd, 2005, 01:47 AM
Hello!!

My compare validation was working initially in the program and now all of sudden it has stopped working. Pl guide. What could be the reason ?



<asp:TextBox id="txt1" runat="server" />

<asp:TextBox id="txt2" runat="server" />

<asp:CompareValidator
id="compval"
Display="dynamic"
Operator="Equal"
ControlToValidate="txt1"
ControlToCompare="txt2"
ForeColor="red"
BackColor="yellow"

EnableClientScript="false"
Text="Validation Failed!"
runat="server" />

aquafin
August 25th, 2005, 11:35 PM
Set the enableclientscript proeprty of compvalidator to true


EnableClientScript="true"

shalini-sb
August 30th, 2005, 06:38 AM
thanq u very much..///