//===============================ajax调用===================================== [AjaxPro.AjaxMethod] public string link(string name) { string text = ""; string sql = "select name from Management_products_class where pid='" + name + "'"; DataTable dt = LinkSql.conn(sql);
for (int i = 0; i < dt.Rows.Count; i++) { if (text == "") { text = dt.Rows[i]["name"].ToString(); } else { text += "," + dt.Rows[i]["name"].ToString(); } } return text; }