积极答复者
sqldatasource数据源使用了“;”号,就取不到Control值了?

问题
-
答案
-
为什么你不使用FilterExpression 表达式,
<asp:SqlDataSource ID="SqlDataSource1" DataSourceMode="DataSet" EnableCaching="true" Runat="server" SelectCommand="select ContractNumber,City,Road ,Address from ContractTable " ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" FilterExpression="CID> 100"> </asp:SqlDataSource>
参考这个链接:
Enable Filtering for the SqlDataSource Control
http://msdn.microsoft.com/en-us/library/59bfya48(v=vs.100).aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Happy Chen - MSFTModerator 2014年4月21日 9:36
全部回复
-
为什么要写2条,写一起不行吗?
select ContractNumber,City,Road ,Address
from ContractTable -
为什么你不使用FilterExpression 表达式,
<asp:SqlDataSource ID="SqlDataSource1" DataSourceMode="DataSet" EnableCaching="true" Runat="server" SelectCommand="select ContractNumber,City,Road ,Address from ContractTable " ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" FilterExpression="CID> 100"> </asp:SqlDataSource>
参考这个链接:
Enable Filtering for the SqlDataSource Control
http://msdn.microsoft.com/en-us/library/59bfya48(v=vs.100).aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Happy Chen - MSFTModerator 2014年4月21日 9:36