Click here to Skip to main content
16,018,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

I have to implement search fuctionality on my website.
I am using ASP.net 2.0.
Can anybody suggest what are the methods in which I can achieve this?

Any help would be much appreciated....

Regards,
Gopal
Posted
Comments
TweakBird 3-Dec-10 6:53am    
Not clear. Are you want to implement search criteria on your own database? Or Site content navigation search (search on html content of entire site)? have a look here http://htmlcoderhelper.com/how-do-i-implement-search-functionality-in-a-website/
TweakBird 3-Dec-10 6:54am    
http://www.webdevelopersnotes.com/tips/webdesign/adding_search_function_web_site_tree_script_navigation.php3
gopalgupta 3-Dec-10 11:45am    
Yes I want to implement search on my site content. Also, I am not supposed to use Google Search

1 solution

Sure!

1. Create a ASP.NET website
2. Create a new search page(ASPX)
3. Now, in this search page, place a textbox, button & a datagrid
4. In button click event, fetch the text entered in the textbox. Use the text to form a search query that you will run ion the database to get back result
5. Once data retrieved from DB, use that dataset/datatable and bind it to datagrid for display.

Try!

For connection with DB using code, try ADO.NET. have a look here[^] for it.
 
Share this answer
 
Comments
gopalgupta 3-Dec-10 11:46am    
Sorry Sandeep, but I want search functionality for the content on the website
Aniket Srivastava 30-Nov-11 3:37am    
how to create search button in aspnet.fetch the data from server.

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