Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 asp.net Web 应用程序中将日历控件设置为从当前日期起 1 周后,以从数据库获取数据到 Gridview
在页面加载(或事件生命周期中需要的任何地方)中,编写以下代码段:(假设日历控件的 id 为:
protected void Page_Load(object sender, EventArgs e) { calenderSagar.SelectedDate=DateTime.Now.AddDays(-8); }