1

I am using a Radgrid in my page. There is a Refresh button in the page to refresh the page to see changes done by other users. I have so many functional buttons in the page (e.g.: mail sending, assigning a row etc…).During other processes if I click refresh button, will it affect the current processes? Is there any chance of data mix up?

4

2 回答 2

1

这取决于您的代码。您必须安全地处理每个进程,以免它与其他进程混淆。

于 2013-09-24T04:55:06.563 回答
1

如果您正在执行异步调用,那么您将很有可能不会混淆数据。可能出现的问题是,如果您通过 jQuery 在客户端执行此操作,那么异步调用可能无法返回 jQuery.ajax()函数的成功/完成处理程序,尤其是当您离开页面时,但服务器 -副业将继续其工作。

您应该尽可能使用SmtpClient.SendAsync Method (MailMessage, Object)异步发送电子邮件。

于 2013-09-24T05:05:12.383 回答