asp:SqlDataSource SELECT LIKE problems

A

Alain Hogue

When I try to use "%" with the LIKE command it return nothing if they
are an acute charater in the search string. For example if I have a
field named "Title" containing words like "Hébert, Gagné, Sauté,
etc...) and I try to do this:

<asp:SqlDataSource SelectCommand="SELECT * FROM [tblCards] WHERE Title
LIKE '%' + @Search + '%') >
<SelectParameters>
<asp:ControlParameter ControlID="txtSearch" PropertyName="Text"
Name="Search" Type="string" DefaultValue="%" />
</SelectParameters>
</asp:SqlDataSource>

and the user type the word "Hébert" in the txtSearch textbox, nothing
is returned.

Please help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top