visual studio 2010 - How to set default date for the calender control in asp.net -


how set calender control 1 week past current date in asp.net web application data database gridview

in pageload(or whereever need in event life cycle), write following snippet: (assuming id of calender control be:

protected void page_load(object sender, eventargs e)     {     calendersagar.selecteddate=datetime.now.adddays(-8);     } 

Comments