摘要: 当进行form提交时,可以给chebox加上value值,通过判断value==""?来判断checked的值,如果checked=false,该标签的value值为""。 阅读全文
posted @ 2011-06-02 16:47 说不清这一切 阅读(3789) 评论(0) 推荐(0) 编辑
摘要: SQL:string sql="datetime1>datetime2";Access(日期的比较):string sql="cstr(format(日期字段,'yyyy-mm-dd'))='" + DateTime.Now.ToString("yyyy-MM-dd")+"'"; 阅读全文
posted @ 2011-06-02 15:11 说不清这一切 阅读(294) 评论(0) 推荐(0) 编辑
摘要: conn.Open(); OleDbDataAdapter myDA2=new OleDbDataAdapter("select * from Grade", conn); myDA2.Fill(ds,"table"); //绑定combox数据源 comboBox1.DataSource=ds.Tables["table"]; comboBox1.ValueMember ="Grade_ID"; comboBox1.DisplayMember ="Grade_... 阅读全文
posted @ 2011-06-02 14:59 说不清这一切 阅读(502) 评论(0) 推荐(0) 编辑