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,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top