How to set Calender Control to 1 week past from the current date in asp.net web application to get data from Database to Gridview
Asked
Active
Viewed 2,597 times
1 Answers
1
In the pageload(or whereever need in event life cycle), write the following snippet: (Assuming the id of the calender control to be:
protected void Page_Load(object sender, EventArgs e)
{
calenderSagar.SelectedDate=DateTime.Now.AddDays(-8);
}

Vidhya Sagar Reddy
- 1,521
- 1
- 13
- 25