Click here to Skip to main content
15,918,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two datsets
dataset1
dataset2

C#
obj_db.GetDataSet(str_query, out obj_dataset1);
obj_db.GetDataSet(str_query, out obj_dataset2);


please reply me quickly
Posted
Updated 4-May-12 23:08pm
v2

1 solution

can i cal more than one dataset using single object
C#
obj_db.GetDataSet(str_query, out obj_dataset1);
obj_db.GetDataSet(str_query, out obj_dataset2);

Yes.

Your method expects an out dataset parameter. You just need to pass any dataset while calling it.
 
Share this answer
 
Comments
jvamsikrishna 7-May-12 10:52am    
Thanks sandeep
Sandeep Mewara 7-May-12 12:03pm    
Welcome.

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