Click here to Skip to main content
15,879,184 members

Comments by mahesh__kumar__sharma (Top 10 by date)

mahesh__kumar__sharma 2-Sep-11 7:49am View    
I added System.Threading.Thread.Sleep(1000 * 5); before creating
System.Threading.Thread.Sleep(1000 * 5);
Document wordDocument = wordApp.Documents.Application.Documents.Open(ref file, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);

But no Luck. :(
mahesh__kumar__sharma 2-Aug-11 12:56pm View    
Deleted
Instead of using "SqlDataReader reader = cmd.ExecuteReader();"
fill datatable
using (SqlDataReader myReader = myCommand.ExecuteReader())
{
DataTable myTable = new DataTable();
myTable.Load(myReader);
con.Close();
return myTable;
}

And now check. You must have values in data table if credential are correct.
Thanks
Mahesh
http://helpondesk.blogspot.com/
mahesh__kumar__sharma 27-Jun-11 12:29pm View    
No we have no cache in our application and it works fine if user hit gridview's row wiht interval of 1 or more second.

Even if i add thread.spleep it workes fine.
mahesh__kumar__sharma 27-Jun-11 12:15pm View    
Hi,
Thanks for helping me. I improved my question for better understanding, please have a look on this.
mahesh__kumar__sharma 27-Jun-11 11:51am View    
my problem is stop this sharing. and queries to know why sleep(500) remove this problem.