View Complete Post
I have an timer outside of UpdatePanel that refreshes every 30 seconds. In the timer's OnTick function, I check the status of some operation from database. If the operation is complete i disable the timer otherwise I enable it. I call timer.Enabled = true. will this cause problem, until the process is complete I keep setting timer.Enabled = true. What happens is that after few hours when multiple users do the same operation the database connection goes down and I cant connect to database at all. the database connection and recordset are closed everytime I checked it.. Any clues on this issue??
I'm using an ajax timer to show different time zones. Also, I'm placing ajax timers to update user controls on my page.
For example, I'm placing 3-4 timers on my page to update my user controls and displaying various time zones. My problem is
this is badly affecting my CPU performance. It is using 20-30% CPU usage. I tried increasing the timer interval from one sec to
6 seconds. This fairly improved the performance. Is there any other way of improving CPU performance ?
I'm updating my user control like this:
<asp:UpdatePanel ID="updateGradeTable" runat="server" UpdateMode="Conditional">
<uc1:GradeTable ID="gradeTable" UpdateMode="Conditional" runat="server" />
<asp:Timer ID="tm1" runat="server" OnTick="tm1_Tick" Interval="7000"></asp:Timer>
I'm updating my timer like this:
What is the best way to update data constantly on the client using asp.net Timer + Update Panel, or I need to use Reverse AJAX for that?
Hi guys,Im about to start development on a countdown timer that will display the time left for a particular product.the format will be like this - 00:00:11.I
have been watching the AJAX video tutorials so im thinking of
approaching this by setting an updatePannel with a timer with a tick
event every 1000ms. Inside the updatePannel i could have a label that
is attached to a C# method that contains the countdown logic2 questions...1: is this a good way forward or not.2:
can anyone suggest data time classes/methods that i will find useful so
for example an admin can enter a start date and an end date and the
timer will show the days, hours, minutes and seconds remaining.the site im trying to emulate is this ... http://www.telebid.com/ looks like they have AJAX countdown timers too.thank you for your help Truegilly
Hi Everybody , I am facing a flickering issue when i am trying to refresh a chart control on the tick of a timer .I am listingbelow the code of my application ,Please help me remove this problem so that chart control get refreshed without any flickers on the specified time intervalThanks in advance. C# code:
I am facing a flickering issue when i am trying to refresh a chart control on the tick of a timer .I am listing
below the code of my application ,Please help me remove this problem so that chart control get refreshed without any flickers on the specified time interval
Thanks in advance.
public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
MyLabel.Text = System.DateTime.Now.ToString();
Txt1.Text = "Mohit";
protected void Timer1_Tick(object sender, EventArgs e)
Label1.Text = "Grid Refreshed at: " + DateTime.Now.ToLongTimeString();
public void BindData()
DateTime st = new DateTime(2010, 6, 1);
int dys = 12;
Dictionary<DateTime, long> dict = GetData(st, dys);
foreach (DateTime d in dict.Keys)
string xlab = d.ToString("M/d");
DayOfWeek wd = d.DayOfWeek;
if (wd == DayOfWeek.Sunday || wd == DayOfWeek.Saturday)
I have an ASP.NET form with several update panels. All works great.
I use a timer and have it handle some periodic upates. That works correctly too. However, I appear to get an error when I leave the page open running in the debugger. Specifically the above JScript error 12030.
I'm not clear how to find the source but I assume it is because my page has logged out. If I refresh I go back to my login page.
So, does this sound like the cause? If so, how to I address this?
I am writing a ASP.NET C# application and using a AJAX timer in order to refresh some if the data every couple of seconds.
Whenever the timer function is called, it looks like the whole page is rendered again. For example, I have a list of tabs, the selected tab is not selected anymore.
I need to keep the selected tab 'selected' after refresh.How can I achieve that?I am attaching the relevant code.
ASPX--------<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="InternalMonitorTool.test" %>