Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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 :-
C#
protected void BtnUpdate_Click(object sender, EventArgs e)
{
 Save1();
 Save2();
}

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
Posted
Updated 3-Oct-11 21:10pm
v2
Comments
Herman<T>.Instance 4-Oct-11 3:11am    
what is the reason the sp1 cannot call sp2?
indrish 4-Oct-11 3:21am    
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.
Yogesh Pednekar 4-Oct-11 6:37am    
good question.

I'm also finding solution for this question.

If you get answer then please send it to me.

Thanks.

Yogesh

1 solution


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..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900