473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Asp.net 2003 force method to finish before processing next

I am using C# with asp.net 2003. I have a method on a web page that has
problems if it is accessed at the same time from more than one client. If it
is called by more than one client, I want to force the method to act
sequentially. I am pretty sure there is somekind of server call that will
allow me to force other callers to wait for the previous call to complete,
however I can't figure out what it is. It would be something like

Application.BeginSequentialProcessing;
MyMethod();
Application.EndSequentialProcessing

How do I do this?
--
Jerry J
Aug 4 '08 #1
4 1144
I got it, it is Application.Lock !!
--
Jerry J
"Jerry J" wrote:
I am using C# with asp.net 2003. I have a method on a web page that has
problems if it is accessed at the same time from more than one client. If it
is called by more than one client, I want to force the method to act
sequentially. I am pretty sure there is somekind of server call that will
allow me to force other callers to wait for the previous call to complete,
however I can't figure out what it is. It would be something like

Application.BeginSequentialProcessing;
MyMethod();
Application.EndSequentialProcessing

How do I do this?
--
Jerry J
Aug 4 '08 #2
Is there an alternative to application.lock ? I would rather just lock the
page, not the whole application.
--
Jerry J
"Jerry J" wrote:
I am using C# with asp.net 2003. I have a method on a web page that has
problems if it is accessed at the same time from more than one client. If it
is called by more than one client, I want to force the method to act
sequentially. I am pretty sure there is somekind of server call that will
allow me to force other callers to wait for the previous call to complete,
however I can't figure out what it is. It would be something like

Application.BeginSequentialProcessing;
MyMethod();
Application.EndSequentialProcessing

How do I do this?
--
Jerry J
Aug 4 '08 #3
Jerry J wrote:
I am using C# with asp.net 2003. I have a method on a web page that has
problems if it is accessed at the same time from more than one client. If it
is called by more than one client, I want to force the method to act
sequentially. I am pretty sure there is somekind of server call that will
allow me to force other callers to wait for the previous call to complete,
however I can't figure out what it is. It would be something like

Application.BeginSequentialProcessing;
MyMethod();
Application.EndSequentialProcessing

How do I do this?
lock(someobject)
{
...
}

maybe.

Arne
Aug 4 '08 #4
"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:48***********************@news.sunsite.dk...
Jerry J wrote:
>I am using C# with asp.net 2003. I have a method on a web page that has
problems if it is accessed at the same time from more than one client. If
it is called by more than one client, I want to force the method to act
sequentially.
lock(someobject)
{
...
}
That sounds good...although the only way I can imagine this working is if
someobject is a static member of the MyPage class. What do you think?

- Steve
Aug 5 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
2
by: AJang | last post by:
My windows form "Form1" has one Button "button1" and one TextBox "textBox1". When I click button1, it do a job for each file in a directory. The job include some platform invoke call. Before...
11
by: PokerMan | last post by:
Hi I have a situation where a method is fired from receiving a message from my server. On receiving this message it triggers a visual animation. So what happens when the server sends say 3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.