how can i am search the data from database?
just like google
Answer Posted / mahendra
note that, when datatype is string i.e. details like
mahendra, then use like this - "select * from employee
where empname like '%" & trim(txtbob.text) "&' ", i used
because to any leading space will be deleted.
if u want to find salary figure that i integer then
"select * from employee where salary >= " & trim
(txtbob.text) "&"
pl.note '%" & '&" for string
for this first design the table like the fields as
EMPNo | EMPNAME | SALARY | DETAILS
Now write the query as follows...
SELECT * FROM EMPLOYE WHERE DETAILS LIKE '%<SEARCH KEY>%'
This is the simplest query for that...
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Is asp.net free?
What is the web.config file in asp?
How to use multiple scriptmanager controls in a web page?
What are the advantages and limitations of query string?
Explain the server control events of asp.net ?
What is asp.net with mvc? : Asp.Net MVC
Can I stream live content/events?
What is state management in .net?
What is inproc mode in session?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
Where web.config file is used?
Who can consume WebAPI?
What is the postback property in asp.net?
How can you debug your.net application?
Why asp.net is better than php?