I searched around a few different places for an answer and checked topics like this, but was not able to find an applicable answer.
I'm creating a web application for a paper form (much like the user in the link I posted). However, unlike that user I'm NOT using an update panel for the display. His post wasn't descriptive enough for me to figure out how to replicate what he had done to get it working.
All I want to do is have an asp RadioButtonList; when "Yes" is checked, enable "Reported Date" (see below for how it looks currently on the form); "Else" disable it.
<div class="col-xs-6 text-right">
<b>Reported to a Supervisor?</b><br>
</div>
<asp:RadioButtonList ID="RadioButtonList_ReportedToSupervisor" runat="server"
RepeatDirection="Horizontal">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="0"></asp:ListItem>
</asp:RadioButtonList>
<br>
<div class="col-xs-6 text-right">
<b>Reported Date:</b><br>
</div>
<div class="col-xs-6">
<asp:TextBox
runat="server"
ID="TextBox_ReportedDate"
class="form-control"
style="max-width:125px" />
<asp:RegularExpressionValidator
ID="RegularExpressionValidator_ReportedDate"
runat="server"
ControlToValidate="TextBox_ReportedDate"
ErrorMessage="Invalid date"
ValidationExpression="^^((0[1-9])|(1[0-2]))\/((0[1-9])|(1[0-9])|(2[0-9])|(3[0-1]))\/(\d{4})$"
Display="Dynamic"
SetFocusOnError="True"
Font-Bold="true"
ForeColor="red" />
<ajaxToolkit:MaskedEditExtender ID="maskededitextender_ReportedDate" runat="server" TargetControlID="TextBox_ReportedDate" Mask="99/99/9999" MaskType="Date" AcceptNegative="None" />
</div>
I'm very new to building web applications so I apologize if this is a relatively dumb question. I am not familiar enough with the common ASP.NET controls in order to figure this out myself.
Thank you very much!