asp.net源代码为:string strsql = "select count(*) from Newclass where newClassname='" + n.Text + "' and classid <>" +DataGrid1.DataKeys[e.Item.ItemIndex]; 运行出错提示:语法错误 (操作符丢失) 在查询表达式 'newClassname='娱乐新闻' and classid <>' 中。 帮小弟个忙.. 谢谢大家了..