阅读背景:

sqlDataSource选择不适用于where子句

来源:互联网 

I bind gridview to sqldatasource.my problem is that when i use sqldatasource without where clause in select statement it works fine,but when I use it with where clause its work fine in Query Builder test and return records but not working in runtime. I used Sql Profiler and see query not run when i use where clause.I heard .NET prevent run query with where clause because of sql injection but I dont know how to correct my query. My sqldatasource:I bind gridview to sqldatasource.my problem is




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: