if (Request.QueryString["start"] == null)
{
for (int i = 0; i < 6; i++)
{
if (DateTime.Today.AddDays(-i).DayOfWeek.ToString() == "Friday")
{
strWhere += " and left(convert(varchar,AddTime,21),10)= '" + DateTime.Today.AddDays(-i).ToString("yyyy-MM-dd") + "'";
this.txtStartTime.Value = DateTime.Today.AddDays(-i).ToString("yyyy-MM-dd");
}
}
}

05-11 15:57