Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There are many ways we can bind data from sql to aspx page.
1. using dataset
2. sqldatasourse or entitydatasource to datacontrol
3. for datacontrols with back end coding
4. datacontrols with automatic updation, deletion..etc
5. in back end connected-disconnected mode with query.
5. using stored procedure
any many more...

So what is the actual best way or the industry thinks its the proper way of coding for software developer and why?????
Posted
Updated 29-Nov-12 20:39pm
v2
Comments
[no name] 30-Nov-12 3:16am    
As per my opinion, 5. SP is best :)

1 solution

Hi,

Each option has their own advantages and disadvantages.

And we should use as per our requirement.

SP is best because it keeps compile code, So it is efficient and fast.
Use DataReader if you only want fwd read access of data.
Use DataSet if you want to modify the changes and fwd as well as backward or multiple traverse of data.

Entity Framework / LINQ to SQL / nHibernate gives good performance some time.
 
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