Click here to Skip to main content
15,881,863 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi,
I have one problem in data fetching some time data not coming in dataset exception throws table[0] not found after refreshing page in 2-3 time data come so i do not think there is programmatically error may be net slow speed or some thing is causing error.what was the problem should i implement locks in sql server or how can i wait till data not comes in dataset.this problem is frequently coming in my site.is there locking problem because my web site it reading and writing lots of data.


Any type of suggestion or you have any kind of idea please help me.
Posted
Updated 7-Oct-10 0:19am
v3
Comments
Sunasara Imdadhusen 7-Oct-10 2:11am    
Have you getting data from web service or using internet?

1 solution

i think its better to have a dataset null check before moving for your logic, atleast its a work around..

SQL
if(ds != null)
{
   then do things
}
 
Share this answer
 
Comments
vaibhav_all 7-Oct-10 8:32am    
yes buddy i am checking but i do not understand that why so happen frequently.I think this is network issue or may be lock problem.

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