HI,
I have a AJAX calendar control and a targetcontrol as textbox. When user inputs the date into the textbox, I want to show some fields based on the date.
If the date is within the past year, I want to show fields which are hidden initially.
How do I do that? Someone please guide me.
I have my code something like this:
<asp:TextBox ID="TextBox6" runat="server" Placeholder="Date" ></asp:TextBox>
<ajaxToolkit:CalendarExtender ID="TextBox6_CalendarExtender" runat="server" BehaviorID="TextBox6_CalendarExtender" TargetControlID="TextBox6">
</ajaxToolkit:CalendarExtender>
<script type="text/javascript">
function ValidateDate(sender, args) {
var enteredDate = sender._selectedDate;
alert(enteredDate);
}
</script> Go to the complete details ...