上传图片时出错. [英] error while upload image.

查看:84
本文介绍了上传图片时出错.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Visual Studio 2010,
我的问题是,当有多个人同时上传相同ID的照片时,会显示错误.

我该如何编写脚本为他们创建一个Q(例如,当第一个人提交时,第二个人提交的图像将在Q中等待,然后在第一个人提交后,他们将完成工作)
但是有一个ID.因此,当他们两个都打开时,ID是相同的.出现错误提示.

1)我可以检查该会话是否有人更新的ID pop消息,请稍后再上传吗?

谁能给我一些建议?感谢

Hi,

I am using visual studio 2010,
my problem is when there are more than one person upload the same id''s photo at the same time there will shows error.

how do I write a script to create a Q for them (e.g when 1st person is doing the submission the 2nd person submit image will wait in a Q then after 1st person submit they will do the job)
however there is a ID for it. hence when both of them open the ID is the same. so the error prompt.

1) can I check if the is the ID pop up message that there is a person update in this session , and please upload later?

can anyone give me some advice? thanks

推荐答案

在数据库中设置一个名为IsLockedBIT字段,每当访问特定ID的记录时,将该字段设置为TRUE.再次另一个用户尝试访问相同的ID,访问数据库并找到IsLocked的值.如果为true,则向第二个用户显示正在编辑的信息,请稍后再试;如果为false,则允许第二个用户访问该记录.
希望这对您有所帮助.让我知道您是否需要任何澄清.
试试吧!
Set a BIT field called IsLocked in database, whenever the record for a particular ID is accessed then set that field to TRUE. Again if another user tried to access same ID, hit the database and find the value of IsLocked. If it is true, show information to second user that it is being edited, please try again later, if it is false allow the second user to access the record.
Hope this helps you. Let me know if you need any clarifications.
Try!


这篇关于上传图片时出错.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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