I have to use like operator for SQL Command in SQL Datasource, but it is not working. Did some one run into the issue? Please Advise.
<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>
做这个:
WHERE Name LIKE '%' + @nameparam + '%'";
where Domain LIKE '%' + @DomainID + '%'" >
我们需要以这种方式发送以便获得类似操作员的工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.