Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir I want to add an search feature to my project.
It should contain one text box followed by a button named 'Search'.
When a user enters his query and clicks on search it should go to the corresponding page.
how can I include that feature.....
pls send coding for that search button..
Please help me with ideas on hoe to implement it.

Thank You.
Posted
Updated 3-Apr-11 20:20pm
v2
Comments
Mahendra.p25 4-Apr-11 1:18am    
please elaborate you want to match that value with your database and then go to the successive page or you want to go to that page which user entered into the textbox
dan!sh 4-Apr-11 2:03am    
"pls send coding for that search button.."

Button btnSearch = new Button();
btnSearch.Id = "btnSearch";
btnSearch.Text = "Search";
btnSearch.Click += new EventHandler(ClickSearchButton);

Now all that's left is writing some code in the handler ClickSearchButton.

Seriously, have you put any effort in this?
Eduard Keilholz 4-Apr-11 2:25am    
Post the code you've got so far and we may give you some tips!

1 solution

You can write your own code to implement search functionality in your website. Search Google for - "search functionality in website" and you will get millions of results. You may then filter out search results for add your requirement to the search query. For ex - add ASP.NET to the end of the query.

You may also go for already available API's for the same. One of the most used is Google web search API. Again search Google for it and you will get a lot of information.

Put some effort!
 
Share this answer
 
Comments
OriginalGriff 4-Apr-11 4:00am    
Good answer, even if I think the OP didn't like the idea of "research" - he posted the question again an hour later!
Ankur\m/ 4-Apr-11 5:15am    
Thanks!

I really don't understand why these people do not like doing some hard work. I have seen many posting their question in other sites if they do not get answers here. How long they want to be spoon-fed. Programming isn't made for such people. :doh:
OriginalGriff 4-Apr-11 5:37am    
It's not even hard work: when I started we had to find and lift big piles of paper called "books" and the interactive search facility was frankly bollocks! :laugh:
Ankur\m/ 4-Apr-11 5:55am    
:DAnd probably not even the forums where you could say - gimme codez urgntzzz. :laugh:

Seriously though, how easy it has become to find information and if you are not willing to search and do 'little' research, you are not suppose to program.
OriginalGriff 4-Apr-11 6:08am    
:laugh:
No, you're right, I am that old!
We had ARPANET (the internet precursor) but most of that was character based pictures of Snoopy and copies of "Eskimo Nell". Hmm. Animal pictures and pr0n: hasn't changed that much, then.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900