Hello,
I need your help on how to solve my problem in RequiredFieldValidator. I have a textbox and fileupload, the textbox is mandatory if the fileupload has no file added. If the fileupload has file on it then the textbox is not mandatory.
here is what i did in my code. I use the required validator in textbox but I have no Idea how to associate this stuff correctly. I already use the custom validator but no luck at all.
please help.
<tr>
<td rowspan="3">
Comment:
<br /><asp:TextBox ID="txtComment" Width="90%" TextMode="MultiLine" Rows="4" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rtxtComment" ValidationGroup="Approval" ControlToValidate="txtComment" SetFocusOnError="true" CssClass="r ...
Go to the complete details ...