AJAX UpdatePanel and Stopping Timer Trigger

46 views
Skip to first unread message

Michael O'Neill

unread,
Nov 6, 2007, 6:37:52 PM11/6/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
If I have an
* asp.net 2.0 page,
* an AJAX 1.0 ScriptManager,
* Timer
* UpdatePanel bound to the timer

Via the Timer's Tick delegate, I seem to be unable to stop the timer
or disassociate the timer from the UpdatePanel's triggers or otherwise
stop the recurring update of the UpdatePanel without a full post
back. Any clue how I can get the Tick event to stop?

Charles A. Lopez

unread,
Nov 6, 2007, 10:52:11 PM11/6/07
to DotNetDe...@googlegroups.com
how do start the timer?
 
how do you associate the timer to the UpdatePanel trigger?
 


 
--
Charles A. Lopez
charle...@gmail.com


Michael O'Neill

unread,
Nov 7, 2007, 11:06:19 AM11/7/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

> how do start the timer?

The timer doesn't need to be started, per se. It starts when it is
constructed and if the Enabled property is True. All I supply to the
timer is a millisecond value for the Interval property


> how do you associate the timer to the UpdatePanel trigger?

I used both the Properties gui interface and by code via the panel's
Triggers property Add method without any difference on way or the
other.

I'm still trying a few things. I've gotten it to work in ways I don't
want to implement. When I get it, I'll share how I did it.


Charles A. Lopez

unread,
Nov 7, 2007, 10:49:30 PM11/7/07
to DotNetDe...@googlegroups.com
On Nov 7, 2007 11:06 AM, Michael O'Neill <cleveri...@gmail.com> wrote:


> how do start the timer?

The timer doesn't need to be started, per se.  It starts when it is
constructed and if the Enabled property is True.  All I supply to the
timer is a millisecond value for the Interval property

 
 
 
What's the function prototype?
What is class definition?
You use the word "constructed" therefore I am assuming "class structure".
 
 
 
 

> how do you associate the timer to the UpdatePanel trigger?

I used both the Properties gui interface and by code via the panel's
Triggers property Add method without any difference on way or the
other.

I'm still trying a few things.  I've gotten it to work in ways I don't
want to implement.  When I get it, I'll share how I did it.

Jamie Fraser

unread,
Nov 8, 2007, 3:55:38 AM11/8/07
to DotNetDe...@googlegroups.com
On 08/11/2007, Charles A. Lopez <charle...@gmail.com> wrote:

> What's the function prototype?
> What is class definition?
> You use the word "constructed" therefore I am assuming "class structure".

If you don't know what a Timer is I suggest you Google, Charles.

Michael O'Neill

unread,
Nov 8, 2007, 10:23:47 AM11/8/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

> What's the function prototype?
> What is class definition?
> You use the word "constructed" therefore I am assuming "class structure".

I think the .NET 2.0 Framework documentation can more suitably answer
your questions...if you aren't familiar with the System.Web.UI.Timer
class, then you probably can't add to anything I'm already trying.
Thanks, though.

Charles A. Lopez

unread,
Nov 9, 2007, 1:29:32 AM11/9/07
to DotNetDe...@googlegroups.com
I'm trying to attain a specific answer. Which I'm not getting.
 
School didn't teach me to go to google.
 
Keyword is SPECIFIC prototype.

--
Charles A. Lopez
charle...@gmail.com


Smith, Peter

unread,
Nov 9, 2007, 9:30:56 AM11/9/07
to DotNetDe...@googlegroups.com

Scripsit Charles A. Lopez:

 

> I'm trying to attain a specific answer. Which I'm not getting.

 

Alas, Charles, in today’s attention-deficit world, the Socratic Method is often mistaken for offensive or just plain stupid behaviour, rather than an attempt to elicit the correct response to an asker’s question from the asker.

_____
Peter Smith

 

 

 

Michael O'Neill

unread,
Nov 9, 2007, 10:31:39 AM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
> I'm trying to attain a specific answer. Which I'm not getting.

For the class definition, I cannot see any more effective answer than
referencing the fully qualified class name in the .NET Framework.
Regurgitating MSDN documentation is not something anyone on this forum
should do, no matter who asks for that hoop to be jumped through.

As far as the function prototype or prototypes I'm using with the
relevant classes methods, that could be highly relevant, but I'm
stipulating that they are not. If you disagree with my stipulation,
your only suitable recourse is to disagree (via a post, or not) and
walk away.

For any given question posted to this forum, sometimes you are given
enough information to weigh in with your insight on an issue. For
this question, if you don't think you have enough information, there's
nothing I can do to convince you otherwise. Your position is
defensible, but not worth my time argue. Likewise, there's not much
you can do to convince me that more information is needed.

In a forum of impersonal interaction, too much information -
information that is not relevant - is just noise.

Michael
http://crisatunity.com

Michael O'Neill

unread,
Nov 9, 2007, 2:01:59 PM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Please explain how the Socratic Method is being employed by anyone in
this thread.

Andrew Badera

unread,
Nov 9, 2007, 2:02:36 PM11/9/07
to DotNetDe...@googlegroups.com
Perhaps the Sarcastic Method?

Smith, Peter

unread,
Nov 9, 2007, 2:20:27 PM11/9/07
to DotNetDe...@googlegroups.com

I didn’t say he was very GOOD at it.

 

I merely inferred that this is what he was attempting, with his questions, based on his comment (that he’s not getting the specific

answer that he’s looking for, as well as the allusion to what the answer might be), and on months of reading his responses. J

_____
Peter Smith

 

Michael O'Neill

unread,
Nov 9, 2007, 2:55:04 PM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Thank you so much for getting it, that was a finely crafted piece of
sarcasm I hoped would not be wasted.

On Nov 9, 1:02 pm, "Andrew Badera" <and...@badera.us> wrote:
> Perhaps the Sarcastic Method?
>

Michael O'Neill

unread,
Nov 9, 2007, 3:02:10 PM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
No matter how hard you try, you can't be "good" at it if you are the
only participant. Charles rarely gets any takers, for various
reasons, to accomplish the back and forth (and intellectual honesty)
it requires. Is it even a method suitable for micro-technical
questions?

> might be), and on months of reading his responses. :-)
>
> _____
> Peter Smith

Michael O'Neill

unread,
Nov 9, 2007, 4:53:25 PM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I was able to resolve my issue. Disabling the timer from the timer's
tick event delegate works I included the timer inside the update
panel.

Now I have a web page with an updating panel that stops updating
conditionally, which is what I wanted.

Charles A. Lopez

unread,
Nov 9, 2007, 6:50:26 PM11/9/07
to DotNetDe...@googlegroups.com
I assume we're all somehow involved in software development. I have my own way of doing that and do not force or expect anyone to do things my way. However, I do ask questions that I think that are relevant to how I would solve the problem.
 
I don't even know, but would like to know the full scope of the application being developed.
 
 
 


 
On 11/9/07, Michael O'Neill <cleveri...@gmail.com> wrote:

Michael O'Neill

unread,
Nov 9, 2007, 7:50:20 PM11/9/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

> However, I do ask questions that I think that are relevant to how I would
> solve the problem.

I never doubt this. You are a sincere and relevant contributor in
this forum.


> I don't even know, but would like to know the full scope of the application
> being developed.

This, I think, is where your style differs from mine. In order to
increase the signal to noise ratio, I believe exposing the full scope
is generally counterproductive. I prefer to see a digestible, most
relevant, chunk of background information.

Michael
http://crisatunity.com

Reply all
Reply to author
Forward
0 new messages