Show month you need in Asp.net Calendar control
By default Asp.net Calendar control shows dates of current month. For some tasks you may need to show another month by default. You can do it from code behind in one string.
To show not current month in Asp.net Calendar control you can with its property "VisibleDate". For example,
Default month for loading calendar
calendarCtrl.VisibleDate = DateTime.Parse("2015-06-14");
If you place this code, for example, to "Page_Load", then your Calendar control will show you July 2015.
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL