字符串怎么比较?
											这个是要把日期,插入数据库num.Text为插入项数,每项的日期依次加7,因为字符串不能加7(我不会让字符串+7),我就想通过取当前时间,将当前时间调整到和date.Text中的字符串相等了,然后让这个时间依次加7再转为字符串,存入数据库中,但是do...while不循环直接就执行下面的了
 protected void Button1_Click(object sender, EventArgs e)
    {
        Comm1 co_date = new Comm1();
        DateTime a= DateTime.Now.Date;
        a=a.AddDays(-1);
        do
        {
            a=a.AddDays(1);
        }
        while (a.ToShortDateString()==(date.Text)) ;//不执行是不是字符串不能用==比较啊?
        a=a.AddDays(-7);
        for (int i = 1; i <= int.Parse(num.Text); i++)
        {
            a=a.AddDays(7);
            string str_date = "insert into lab_date (cou_week,week_date) values ('"+i+"','"+a.ToShortDateString()+"')";
            co_date.ENQ(str_date);
        }
    } 
  



 
											





 
	    

 
	
 
											



