Hi i am using raddatetimepicker verson=2011.1.519.35 in asp.net i want to set todays date to it...
it is possible with ajaxcalender extender like
it means whatever date in hiddenfield, i want to set it to raddatetimepicker as today date...
how to do it for asp.net...
it is possible with ajaxcalender extender like
function clientShowing(sender, args) {
if (new Date($get("HiddenField1").value) != null) {
sender.set_todaysDate(new Date($get("HiddenField1").value));
}
}
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
asp:ToolkitScriptManager
ID
=
"ToolkitScriptManager1"
runat
=
"server"
>
</
asp:ToolkitScriptManager
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
></
asp:TextBox
>
<
asp:calendarextender
ID
=
"CalendarExtender1"
runat
=
"server"
Enabled
=
"True"
Format
=
"dd/MM/yyyy"
TargetControlID
=
"TextBox1"
OnClientShowing
=
"clientShowing"
PopupPosition
=
"BottomLeft"
>
</
asp:calendarextender
>
<
asp:HiddenField
ID
=
"HiddenField1"
runat
=
"server"
/>
</
div
>
</
form
>
it means whatever date in hiddenfield, i want to set it to raddatetimepicker as today date...
how to do it for asp.net...