Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The website is sometimes missing the data. If we are login at that time, it will automatically logged out, and if we wait for 2 min and click again in any link it will automatically log in. I think the database connection is missing for some time,after that it will connect automatically.i had set the Job in the server. I am using SQL Server 2008..What will be the issue. Please help me.
Posted
Comments
[no name] 25-Jan-13 5:35am    
What are you using for login Process? session value or cookies?
Member 9492907 25-Jan-13 5:40am    
I am using Session. this was not the session issue..All the data are missing for sometime. all the dropdownlists are show as empty lists in all the pages..in all the user accounts.
bbirajdar 25-Jan-13 6:24am    
virus problem on the server.... you are doomed...
Member 9492907 25-Jan-13 6:28am    
But how can we found if it is a virus problem. All the users are logged out at the same time, and the log in after same time if we refresh the page..please give me a solution
Member 9492907 28-Jan-13 1:08am    
I found ,why the issue is happening. Some times if there is multiple users in the website, the data from one module is replace with the other module data..so i think the issue is related to the DAL structure..

My Function structure is like this
public static DataTable ABC(string UserName, out string Error)
{
Error = string.Empty;
objDataTable.Clear();
objDataTable = new DataTable();
DataCommand.CommandText = "SELECT restId FROM tblRestaur AS rb JOIN tblOwner AS o ON rb.ownerId = o.ownerId WHERE o.ownerUserName = @UserName";
DataCommand.Parameters.AddWithValue("@UserName", UserName);
DataCommand.CommandType = CommandType.Text;
try
{
if (DataConnection.State != ConnectionState.Open)
DataConnection.Open();
DataAdapter.Fill(objDataTable);
}
catch (Exception ex)
{
Error = ex.Message;
}
finally
{
DataCommand.Parameters.Clear();
DataConnection.Close();
}
return objDataTable;
}

What will be my mistake..plz help me

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