forum

home / developersection / forums / search using textbox value and wildcard character

Search using textbox value and wildcard character

Anonymous User 2309 29-Aug-2014

I want to search the empid of a name that with the characters entered in my textbox. using wildcard characters. I wrote the statement

da = new SqlDataAdapter(

 "Select empID from emp where FirstName like ' "+textbox1.text+" ' % "

   , connstring);

da.Fill(ds);

Is this statement correct?


c#
Updated on 01-Sep-2014

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By