I assume you want the date on the second TextBox
to change after the user has selected a calendar date on the first TextBox
. You need to intercept the OnClientDateSelectionChanged
event (on the client) (in javascript) and write a handler (in javascript) that will update the value on the second TextBox
from the value selected on the first
Basically given this:
<asp:TextBox ID="tbFirst" runat="server"></asp:TextBox>
<asp:TextBox ID="tbSecond" runat="server"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender7"
runat="server" OnClientDateSelectionChanged="DateSelected" TargetControlID="tbFirst" />
Then in a javascript block you:
function DateSelected(sender,args)
{
alert('You have selected : ' + sender._selectedDate);
//TODO: Select the second box and set it's value to whatever is needed
}