Click here to Skip to main content
15,894,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i use Microsoft visual web developer 2010 express and i have created a database on sql server 2005 so i want that when the user clicks the search button it retrieves data from the database. how do i go about it? webpage references would also help.
Posted

You can do this by using classes ADO.NET

A Beginner's Tutorial for Understanding ADO.NET[^]

Or if you want to do it using ORM like entity framework you can do this using that too:

An Introduction to Entity Framework for Absolute Beginners[^]
 
Share this answer
 
Comments
Prasad_Kulkarni 29-May-12 7:23am    
my 5!
 
Share this answer
 
Comments
morojele 28-May-12 18:20pm    
thank you
i am giving you links that will help you

The ASP.NET GridView[^]
 
Share this answer
 
C#
SqlConnection connection = new OracleConnection(/*"connection string"*/);
SqlDataAdapter     adapter = new SqlDataAdapter("SELECT * from mytable", connection);
 DataTable  table = new DataTable();
        adapter.Fill(table);
// so, you have that table which contain the data, you can bind it to any data controls



Good luck
 
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