Data View Row Filter

Joined
Apr 12, 2012
Messages
1
Reaction score
0
Hi,


oDsUserList.Tables[0].DefaultView.RowFilter = "[USER_NAME] LIKE '" + oTools.CompileSQL(txtLookForNames.Text) + "%" + "'";

oDsUserList.Tables[0].DefaultView.RowFilter = "USER_NAME LIKE '" + oTools.CompileSQL(txtLookForNames.Text) + "%" + "'";


The above mentioned codes of mine turns out an exception when the txtLookForNames.Text is " [ " (Left - Square bracket )

Can you find me a solution for the same.
 

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

Top