Web应用程序(Asp.net)中的数据表问题 [英] Data Table Problem in Web Application (Asp.net)

查看:64
本文介绍了Web应用程序(Asp.net)中的数据表问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了Web应用程序ERP系统.我已使用C#数据表存储临时记录.但是我的Web应用程序中有多个用户登录(使用会话)时出现问题.当一个用户将一条记录(如ItemName,Size,Color)添加到同一记录在另一用户(另一台计算机)中显示的数据表中时.

I have develop web Application ERP System. I have used C# Data Table for Store Temporarily Records. But I got Problem When Multiple user Login(Using Session) in my web application. When One User Add One Record(Like ItemName, Size, Color) into DataTable That Same Record Show in other User(Other Machine).

推荐答案



在温度表中,再添加一列名为userid或与用户登录相关的用户名,并显示属于相应用户的记录.

完成这些操作后,如果不需要,请删除相应的用户数据,这将提高性能.

希望这会有所帮助.
Hi,

In your temperory table add one more column named userid or username related to user login and show records that belongs to respective user.

And after you are done with the things delete respective user data if not required which will improve the performance.

Hope this helps.


这篇关于Web应用程序(Asp.net)中的数据表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆