SqlDataSource FilterExpression doesn't support LIKE + 'String__' pattern

W

wubin_98

When I set a SqlDataSource1.FilterExpression value to " Partnumber LIKE
'87-2055-___'" , SqlDataSource return empty. But I can get correct
result in SQL query by including above expression.

I also found that FilterExpression only support % (Any string of zero
or more characters) in the end of string. For example, "Partnumber LIKE
'87-2055-%' (OK). But "Partnumber LIKE '87-20%-012'" (Error).

Could anyone give an explanation?

Thanks,

BWU
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top