Posted on: 7/30/2012 9:16:13 PM | Views : 1258

I am trying to conditionaly enable validator controls on a

textbox (txtRank3) based on if  textbox (txtTitle3) has any data in it.  All controls are in a FormView.  This is what I have so far, but it does not work. Thanks
John
<asp:TextBox ID="txtTitle3" runat="server" Text='<%# Bind("Title3") %>' Width="490px" ReadOnly="True"></asp:TextBox> <asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="txtRank3" ErrorMessage="Rank is Required" Display="Dynamic" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator> <asp:RangeValidator ID="rv3" runat="server" ControlToValidate="txtRank3" Display="Dynamic" ErrorMessage="Number out of range" MaximumValue="8" MinimumValue="1" ...

Go to the complete details ...