#Default.aspx.cs方法: ClassLibrary1.Help h = new ClassLibrary1.Help(); string sqlWhere = "1=1"; if (txttitle.Text != "") { sqlWhere += " and title like '%" + txttitle.Text + "%'"; } if (txtlmmc.Text != "") { sqlWhere += " and .