静态数据表问题 [英] Static datatable Problem
问题描述
现在,我创建了一个时间表应用程序。
在该时间表输入页面中,iam使用静态数据表。
静态数据表用于保存员工输入的当天记录。
这样他/她就可以轻松编辑和插入记录。
工作正常单个用户..
但问题是,当多个用户登录时,一个用户获得另一个用户的值。当用户都登录时,他们也无法编辑数据表中的记录。
我使用gridview执行整个操作。
我使用视图状态来存储数据表..?
或
使用带有员工姓名/ id名称的数据表。
请尽快给出答案。
尝试一下让我知道
ViewState [ViewStateVariableName] = datatable;
datatable dt =(datable)ViewState [ViewStateVariable]
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.
Try this once and let me know
ViewState["ViewStateVariableName"] = datatable;
datatable dt = (datable) ViewState["ViewStateVariable"]
这篇关于静态数据表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!