Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

CalendarExtender change month

$
0
0

I have 2 date textbox controls (see below) using ACT. When I click on the textbox I get the calendar for the current month.  If I enter a date for a different month in the first textbox (txtTimeOffDate) I want the 2nd textbox (txtTimeOffDateTo) to popup the same month calendar instead of the current month.

<td><asp:TextBox ID="txtTimeOffDate" runat="server" Width="72" ClientIDMode="Static" onchange="setdateto(this);" /><cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtTimeOffDate"></cc1:CalendarExtender><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ErrorMessage="Time off Date is required." Display="Dynamic" 
                            ControlToValidate="txtTimeOffDate"></asp:RequiredFieldValidator></td><td><asp:TextBox ID="txtTimeOffDateTo" runat="server" Width="72" ClientIDMode="Static" /><cc1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtTimeOffDateTo"></cc1:CalendarExtender></td>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>