0
我必須在SQL數據源中對SQL命令使用類似運算符,但它不起作用。有人遇到過這個問題嗎?請指教。像SQL數據源中的SQL查詢中的運算符
<asp:SqlDataSource ID="gridSource" runat="server" ConnectionString="<%$ ConnectionStrings:connectionString %>"
SelectCommand=" select * from [test where domain like '%@DomainID%'">
<SelectParameters>
<asp:ControlParameter Name="DomainID" PropertyName="SelectedValue" ControlID="ddlcu"></asp:ControlParameter>
</SelectParameters>
</asp:SqlDataSource>
究竟是不是工作? – bc004346