hi,
i need to be able to find out when the user changes a date, which is displayed in a textbox using a CalendarExtender.
because the CalendarExtender only allows client side (java) calls and does not call a function in code behind, i have to somehow find a way to do this using java.
i would like to use the OnTextChanged event of the textBox if possible.
i have got most of the code, but i do not know how to retrieve the targetID object of the CalendarExtender.
i must admit, my java knowledge is not the best and i can not find any info on it.
here the code
<script type="text/javascript">
function UpdateClientDate(cal)
{
__doPostBack(>>>textBoxObj<<<,'test');
// textBoxObj is supposed to be the TargetControlID of CalendarExtender1
// obj of CalendarExtender1 should be the parameter cal, right ?
}
</script>
...
<asp:TextBox ID="IDE_DATE_FROM" runat="server" Width="75px" OnTextChanged="IDE_DATE_FROM_TextChanged"></asp:TextBox>
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd/MMM/yyyy" OnClientDateSelectionChanged="UpdateClientDate" TargetControlID="IDE_DATE_FROM" />
...
code behind
protected void IDE_DATE_FROM_TextChanged( object sender, EventArgs e )
{
}
any help would be appreciated
cheers
Martin