hi all,
Following is the code I am using to get the value of a calendar control in a variable....but it is not happening, can anyone suggest me where I am going wrong:
protected void cntCalendar_SelectionChanged(object sender, EventArgs e)
{
string
scr = @"<script>
function Done()
{
var st = document.getElementById('cntCalendar').value = (cntCalendar.SelectedDate.ToShortDateString());
window.opener.update(st);
window.close();
}
</script>";
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "done", scr);
}
Regards,
Royal
No one has replied yet! Why not be the first?
Sign in or Join us (it's free).