黄聪

论SEO对人类的重要性,请看我的博客:hcsem.com

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  1. string statement "SELECT TOP " maxRecords FROM Customers ";   
  2. string whereConcatenator "WHERE ";   
  3. if (companyNameTextBox.Text.Length 0)   
  4. {   
  5.  statement += whereConcatenator;   
  6.  statement += "CompanyName like "companyNameTextBox.Text "%";   
  7.  whereConcatenator "AND ";   
  8. }   
  9. if (cityTextBox.Text.Length 0)   
  10. {   
  11.  statement += whereConcatenator;   
  12.  statement += "City like "cityTextBox.Text "%";   
  13.  whereConcatenator "AND ";   
  14. }   
  15. if (countryComboBox.SelectedItem != null)   
  16. {   
  17.  statement += whereConcatenator;   
  18.  statement += "Country "countryComboBox.SelectedItem "";   
  19.  whereConcatenator "AND ";   
  20.   
posted on 2010-03-26 15:34  黄聪  阅读(482)  评论(0编辑  收藏  举报