如何管理与数据库和ASP.NET的连接 [英] How to manage connection with database and asp.net

查看:68
本文介绍了如何管理与数据库和ASP.NET的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个用户用一个页面(datainsert.aspx)连接到多个客户端浏览器时.他将数据插入所有客户端浏览器页面并将数据发送到单个表中.如何解决此问题.

When one user connect with multiple client browser with one page(datainsert.aspx).He insert the data in all client browser pages and send the data in single table.how can manage this problem.

推荐答案

您可以使用交易 [ ^ ],这将帮助您解决有关多用户访问的所有问题,请尝试以下操作:

在ADO.NET中使用事务 [
You can use Transactions[^], this will help you in resolving all the issues regarding the multiple user access , try this:

Using Transactions in ADO.NET[^]

hope it helps :)


这篇关于如何管理与数据库和ASP.NET的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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