473,809 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timer Control Delay

Hi,
I have a web application that refreshes a label control every 1 sec
(interval set by timer control). I am using Atlas panel for refreshing.
Basically I have a method say PollMSMQ(), which polls MSMQ after every 1 sec
& display the message in the label, if any. In the same ASPX page I have
button (Save Data). Problem is that, when my application thread enters to
the method PollMSMQ(), it takes some time to poll the message queue say 3
secs. Within that 3 sec, if I click in the button – ‘Save Data’, button click
event is not firing. I need to click multiple times.

According to my understanding, this is happening because there is some time
delay in poling the MSMQ, and within that time duration we cannot do any
other operation with the browser – means click of the button.

Note that polling MSMQ should happen in a continuous basis and also user
should be able to interact with the browser without experiencing any
difficulty – means should be able to click the button in a single go.

Can anyone give a suggestion for this?

Thanks in advance

Sep 26 '06 #1
2 1900
if you are using sessions, then page requests are serialized. you should not
be making polling calls that take 3 seconds. you should set up a second msmq
manager that does the polling of the first. then polling the second would be
quick.

-- bruce (sqlwork.com)
"Umeshnath" <Um*******@disc ussions.microso ft.comwrote in message
news:CF******** *************** ***********@mic rosoft.com...
Hi,
I have a web application that refreshes a label control every 1 sec
(interval set by timer control). I am using Atlas panel for refreshing.
Basically I have a method say PollMSMQ(), which polls MSMQ after every 1
sec
& display the message in the label, if any. In the same ASPX page I have
button (Save Data). Problem is that, when my application thread enters to
the method PollMSMQ(), it takes some time to poll the message queue say 3
secs. Within that 3 sec, if I click in the button - 'Save Data', button
click
event is not firing. I need to click multiple times.

According to my understanding, this is happening because there is some
time
delay in poling the MSMQ, and within that time duration we cannot do any
other operation with the browser - means click of the button.

Note that polling MSMQ should happen in a continuous basis and also user
should be able to interact with the browser without experiencing any
difficulty - means should be able to click the button in a single go.

Can anyone give a suggestion for this?

Thanks in advance

Sep 26 '06 #2
Hi,
Pooling is happen in every one second. But it check for the meesage that
takes a few seconds ( may be two or three). Mean time I am loosing the
cortol from my weba application

Umeshnath

"bruce barker (sqlwork.com)" wrote:
if you are using sessions, then page requests are serialized. you should not
be making polling calls that take 3 seconds. you should set up a second msmq
manager that does the polling of the first. then polling the second would be
quick.

-- bruce (sqlwork.com)
"Umeshnath" <Um*******@disc ussions.microso ft.comwrote in message
news:CF******** *************** ***********@mic rosoft.com...
Hi,
I have a web application that refreshes a label control every 1 sec
(interval set by timer control). I am using Atlas panel for refreshing.
Basically I have a method say PollMSMQ(), which polls MSMQ after every 1
sec
& display the message in the label, if any. In the same ASPX page I have
button (Save Data). Problem is that, when my application thread enters to
the method PollMSMQ(), it takes some time to poll the message queue say 3
secs. Within that 3 sec, if I click in the button - 'Save Data', button
click
event is not firing. I need to click multiple times.

According to my understanding, this is happening because there is some
time
delay in poling the MSMQ, and within that time duration we cannot do any
other operation with the browser - means click of the button.

Note that polling MSMQ should happen in a continuous basis and also user
should be able to interact with the browser without experiencing any
difficulty - means should be able to click the button in a single go.

Can anyone give a suggestion for this?

Thanks in advance


Oct 16 '06 #3

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

Similar topics

8
1751
by: Djanvk | last post by:
Ok I'm working on a program where you have say x number of seconds to do something. I'm at a loss on how to go about running a timer function. Can anyone point me in the right direction or post a snippet of code for me to look at? The program I'm trying to write is a 2nd grade math program to help my daughter with her addition and subtraction. Thanks
18
2217
by: Joe | last post by:
Hi, I am trying to alter the refresh rate of an online webpage in a webbrowser control using MFC. However the Timer ID is stored in a local variable and I don't know how to access it. Is there a technique in Javascript that I might be able to use/adapt? I have a timer set within a prototype thus: ;HControl.prototype.setFLTimeout = function() {
3
5613
by: ELO | last post by:
Hi all Every week, I need to get two files on a remote server. I have developped a C# Windows Service with two System.Threading.Timer to do this task For the first one, the delay (TimeSpan dueTime) is always set to 6 days, 23 hours, 59 minutes, .. Some weeks ?!?, the timer restarts immediately after its execution (and loop indefinitely). I have made a lot of tests and this issue does not occur with a delay < 1 day .. Any suggestion
4
2316
by: vinay | last post by:
Hi, I need to use a Timer at run time. I have created a Timer class which has method 'CreateTimer'. I am able to create a timer and run the associated event (code snippet follows), but I am unable to: 1. Stop this timer. 2. Give it a specific Name (sTimer), so that I can
5
2982
by: joec | last post by:
I'm writing an arcade game were I need a delay for the man between steps. Also using the keyboard arrows to direct user man. Using delay at 5000 (changeable) Dim mark(15000) 'Sub DEALAYMAN: TIMER ON: CONST unmark =0, narkit = NOT unmark: start!= TIMER num = 0 For n = 3 to delay STEP 2 IF NOT mark(n) THEN delta = 3 * n FOR i = 3 * n to delay STEP delta
3
8634
by: Steve Lowe | last post by:
Hi, I'm getting into VB.net with the help of a few books, but have got a problem grasping how to implement a system.timers.timer Only 1 of my 3 books mentions timers and that's a Windows.Form.Timer Basically I need to have a 30 second delay in some module code. To help me get the hang of it - (that should really be start to get
9
2647
by: archana | last post by:
Hi all, I want to know about interval of timer. I am using timer in windows service.I head somewhere that when i set interval property of timer while setting interval, restart time of Pc is consider. My question is if i am using timer in my windows service, is there any place where interval related information like interval set used by my
19
40820
by: UG | last post by:
I just wanted to know whether any timer facility exists in C, as it is not mentioned in K&R 2, or in the ISO Draft. By timer function i mean that when we use standard input function like scanf() or getch() or any other function, the interface stops to take input from user but what if user doesn't give input for hours, the program will still be waiting. Is there any way to circumvent the scanf() (or any other input function for that matter)...
3
3846
by: Beemer Biker | last post by:
Unaccountably, I cannot re-enable a timer from an background thread. The disable works fine, I just cannot get it to start back up. There is no method "InvokeRequired" like there is for windows.forms.controls and I get no error message about cross thread so I am not sure where the problem is. I have a "SerialPoll_timer" that every second requests status from a device on an RS232 port. I use this to determine if the device is on line. ...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10637
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.