to set calendar's date by javascript
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
hi, I want to set asp.net calendar control's date as today's date as per culture by javascript . how to do it ? plz help. regards max
-
hi, I want to set asp.net calendar control's date as today's date as per culture by javascript . how to do it ? plz help. regards max
Why r u using asp calender use javascript for the same.Anyways u can use this code: private void calDate_SelectionChanged(object sender, System.EventArgs e) { control.Value = calDate.SelectedDate.ToShortDateString(); Response.Write("window.returnValue='" + calDate.SelectedDate.ToString("dd/MM/yyyy") + "';window.close();"); }