Click here to Skip to main content
16,016,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
My project requires the implementation of search of products from database using web service or stored procedure and it should display the searched data in gridview. How can i implement it??? Help required!
Posted

1) Create a stored proc that takes appropriate search arguments and performs the search on your database.
2) Create a Web Service that takes appropriate arguments from a consumer and pass those arguments on to your stored proc created in step 1. Return the data received back from the stored proc back to the consumer in an appropriate format(ie. JSON, XML, etc.)
3) Create a WebForm that has a GridView in it. You can populate the data received from the Web Service in step 2 either through code behind or via javascript if you choose to use ajax to communicate with the Web Service.
4) Come back and ask specific questions around specific issues encountered as you endeavor to achieve this program.
 
Share this answer
 
This is not a question. A stored proc and a web service are not a dichotomy, your web service would have to call a proc or run SQL. In any case, no-one can help you. We don't know any thing useful about your project. All we can say is, use a webservice if you want people outside your network to be able to search ( not using a web page ), using a stored proc is better than writing SQL in your app, and a grid view is a data bound control, it's designed to show the result.
 
Share this answer
 

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