Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,

Here iam Facing a Typical Problem.Actually in My Project i Have 100 TextBoxs.Now iam Filling only first 10 textboxes i Will hit the Database.And after that another 10 textboxes once again it wil Hit the Database.Iam thinking that its Not that Good way.So is there any Other Best Way to Reduce the Network traffic.


Regards,

Anilkumar.D
Posted
Comments
Menon Santosh 8-Nov-11 23:52pm    
You can cache data in any datatable

For your solution you need to do like this..

1) First of all all the 100 record will fetch from database in only fist hit...
2) using data set you need to fill that all record to your data set..
3) now create one table from data set and fetch first 10 record from it.. then next 10 then next 10...
so using ADO.NET you can reduce your data base call and use a disconnected architecture benefit for it so your network traffic will reduce as per your requirement....

for more information on ADO.NET please see this links...

http://msdn.microsoft.com/en-us/library/ms971481.aspx[^]

Using ADO.NET for beginners[^]
 
Share this answer
 
Comments
Anil Honey 206 9-Nov-11 0:15am    
Thax For Your Suggestion
koolprasad2003 9-Nov-11 0:43am    
if it is solved then marked it as "RESOLVED" by accepting any answer. Do not forget to rate the answer, which will show positive reception to experts who helps you.
Thanks
Anil Honey 206 9-Nov-11 1:50am    
Ok Sure i will accept Your Answer.
Use Dataset, which is disconnected design. help you to accomplish your task. Hit only one time to database and fetch all data in dataset and use it whenever you want.
 
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