asp.net(3.5)中的多用户问题 [英] Multiuser problems in asp.net (3.5)

查看:71
本文介绍了asp.net(3.5)中的多用户问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当多个用户使用相同的表单并进行更改时出现问题

如何在asp.net中以同步方式调用两个函数
只需单击一个按钮
如:-

Problems comes when multiple user using same form and make changes

How to Call Two Function in synchronized manner in asp.net
on click of one button
such as :-

protected void BtnUpdate_Click(object sender, EventArgs e)
{
 Save1();
 Save2();
}


而这两个函数都用于与sql数据库执行事务.
对于这两个功能,使用了两个不同的存储过程.

请再建议我一件事,如何找到在线的用户ID.
以及如何结束已关闭应用程序或注销的用户的会话.
------ indrish


whereas both these function used to perform transcation with sql database.
for these two function two different stored procedure used.

please suggest me one more thing how to find user''s id which are online.
and how to end session of user''s who has close the application or log off.
------indrish

推荐答案


此应用程序类似于ERP,每种形式分为两类,一种形式为"Header",另一种形式为"Detail",save1()用于保存和查看Header的数据.并生成一个序列号头. save2()用于保存和查看明细数据.这意味着自动生成的序列号是唯一的,并且一个序列号可以有多个小品.


朋友你好..

我也在ERP上工作..当您需要SAVE1()函数在数据库中添加Header值时,您需要从中创建一个自动生成的序列唯一号,对..

但是当多个用户登录时,序列号就产生了问题..


首先,我需要知道是否需要以连续格式存储序列号..
就像如果用户1是登录名并且其门A001和用户2是门A002
但是用户1没有发布查询,因此序列号A001没有插入您的数据库中,而用户2发布了他的查询,因此A002被插入了您的数据库中.
还是不重要.

This application is like ERP and every form divided into two category one is like "Header" another one like "Detail" the save1() is used to save and view Data of Header. and also generating a serial no in header. the save2() is used to save and view Data of Detail. this means in a form the auto generate serial no is unique and one Serial no can have muliple Deatils.


Hello Friend..

I have also work on ERP.. and as you need that the SAVE1() function add Header values in database and from there you need to create a serial unique no that is automatically generated, right..

but when multiple user login then the the serial number is creating a problem..


first of all i need to know that if you need to store a serialnumber in continuous format or not..
like if user 1 is login and its gate A001 and user 2 is gate A002
but user 1 is not posting a query so the serial number A001 is not intserted in you database and user 2 is post his query so A002 is intersted in your db..

so its corect or not..


这篇关于asp.net(3.5)中的多用户问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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