Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Now a days, Iam creating a time sheet application.

In that time sheet entry page, iam using a static datatable .
Static datatable is used for holding the records for current day entered by employee.
So that he/she can easily edit and insert the records.
It is working fine for single user..

But the problem is that , when multiple users logged on , one user get values of another user. when both the user logged on, they also cannot edit the records in the datatable.

Iam using a gridview to perform this whole operations.

is i use view state to store the datatable..?
or
use datatable with the name of employee name/id.?

please give answer ASAP.
Posted

1 solution

Try this once and let me know

ViewState["ViewStateVariableName"] = datatable;

datatable dt = (datable) ViewState["ViewStateVariable"]
 
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