.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Timer control issues...page gets slower and slower....

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :ASP.Net

 Hi all,

I have a Update panel with a Timer control inside the <ContentTemplate> so the JavaScript timing component is re-created only when each postback finishes. I am testing with static data in a small table. I query this table every 3 seconds. It works great for the first 5 min but then it starts to take longer to retrieve the data.... (I can see that with a time stamp I post back in a Label control).

I am not sure why that is happening. I thought that was because I had the Timer control outside the UpdatePanel (as I was using a Trigger) but I moved that inside the UpdatePanel but still get the same results.

What could be happening here?

Thank you


View Complete Post

More Related Resource Links

Why ASP.Net AJAX Timer control stops ticking when we right click on the page?

Asp.Net AJAX Timer control stops ticking when I right click on the page. Actually i am updating a label using timer control for every second. When I right click on the page the label is not getting updated. I mean the timer stops ticking. Please tell me what is actually happening and how can i resolve it.

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2008


I am having problems with a user control. I want my solution to have a separate project for holding my user controls.

The main project can get a reference to this user control project and can import this user control dll into my main project. 

Thanks in advance,

Dheeraj Mittal


Content page control passes as argument to javascript function


Here is the content page:


<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="JavaDynamicCopyValue.aspx.cs" Inherits="JavaDynamicCopyValue" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript" >
 function copyValue(input, output )
   ouput.value = input.value;
   return true;
 <asp:TextBox ID="txt1" runat="server" onchange="copyValue(this,document.getElementById('<%=txt2.ClientID%>'))"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="txt2" runat="server"></asp:TextBox>


I got a javascript run time error says output is undefined. if I view source of the page, the txt1 markup became:

<input name="ctl00$ContentPlaceHol

Open different page using Ajax Modal PopUp Extender Control

The article Open different page using Ajax Modal PopUp Extender Control was added by Chintan Dave on Thursday, July 15, 2010.

You May use Modal Popup Extender to open some part of the page as Popup. But there we don't have any property to open other html or aspx page in Popup window.We can do it using IFrame control. What we have to do, just add IFrame control in Panel that

Knowing the event occured in user control in current page




      My web application has user control which uses third party controls called Devexpress controls. The user control is a menu  and is part of the Master page. It is placed there because this needs to be available in all the pages. My user controls raises a even on item clicked. Now, My question is that Is there any way to know that the event has occurred in page_load of the current page in which I am in?

User Control not accessing the value of the properties send to it from the aspx page.


I have a dynamic accordion on a page. Set its datasource to an object of paged data source.The user control is in the accordions content template. When i was writing code the properties were showing but after giving the values of databases as


<uc:UserControl1  runat="server" Property1='<%#DataBinder.Eval(Container.DataItem,"columname1")%>' Property2='<%#DataBinder.Eval(Container.DataItem,"columname2")%>'  ></uc:UserControl1>


but the values shows null, these properties are shown as textboxes text property by user control.

MoreOver when I checked the values of database Items.So i made a textbox instead of usercontrol here as

<asp:TextBox ID="txtTest" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Columname1")%>'></asp:TextBox>

It is showing the correct value. And if i pass the value directly it is also showing correctly like

<uc:UserControl1  runat="server" Property1="XYZ")%>' Property2="ABC")%>'  ></uc:UserControl1>

. where I am wrong

the problem is eval is not passing the value to usercont

Control Values When Returning to Page


Why do controls value not persist when returning to a page (e.g. via browser back button)?  If I set control values without utilizing a post back the controls will maintain their last value when I return to the page.  If I set a control value and then call a post back, the control value is reset to the default value when returning.

I have many pages with a gridview, and a textbox which is used to filter the gridview contents.  I set the filter textbox, filter the gridview (postback), go to another page, and when I return to the gridview page (via back button), my filter textbox is reset empty, and the gridview is the original (unfiltered) data.

What concept am I missing here?

Thanks in advance...

Printer Friendly Page from a listview control


Hi guys,

I am working on a web form that displays the data from an access data source into a list view control. I need an advice on how to create , render a new page printer freindly .not buttons, controls,,, I have implemented a  java script function to select which records I want to view in the printable page but I cannot came up with any idea on how  to use this to create the printable help..


Microsoft Report Viewer control to display data on one page


Hello everyone,

I am wondering if the Microsoft Report Viewer control allows for display changes.  Say for instance a user wants would like to see all the data requested then another time would like to toggle thru the pages of infomation.  So does anyone know if the control allows for display changes from complete view to paginated viewing.  I am using MS VS 2008 with ASP.NET 3.0.  Thanks for your response.


64-bit SortedDictionary class over 3x slower than 32-bit version?

I'm seeing a 3x-10x performance slowdown using the SortedDictionary class in 64-bit CLR.  I posted a longer thread earlier but just deleted it, since I now understand the problem in more detail and have a much shorter repro case (included below) so wanted to start fresh.   The code below runs at least 3x slower on an 8-way x86 server than all the 32-bit PCs I tried including a beefy 4-way Xeon server and a low-end workstation.  I can create variations on this code which run even slower, but figured simpler is better for now.   CLR experts-- is this expected?  Could there be something else causing the problem besides 64 vs. 32 bit, e.g. 8-way vs. 4-way?  Note that I haven't seen similar variations with other CLR classes, only SortedDictionary.  The problem doesn't occur with smaller-sized dictionaries, only larger ones.  (My test uses 20K items)   using System; using System.Collections.Generic; class Program {   static void Main(string[] args)   {     Console.WriteLine("Starting perf test of SortedDictionary");     Random rand = new Random();     DateTime start = DateTime.Now;     int nTotalDictionaries = 500, dictSize = 20000, nTotalItems = 0;     for (int j = 0; j < nTotalDictionaries; j++)     {       SortedDictionary<int, bool> dict = new SortedDictionary<int, bool>();       for (int i = 0, nLen = dictSize; i < nLen; i++, nTotalItems++)       

dynamic menu control call in login page

Hi ,i have declared two control in my master page , how wants to call this menu control in child page ( that is login page)i want to bind the menu control dynamically based on login previlagepublic Menu newMenu = new Menu();  public MenuItem newItem = new MenuItem("Master");

Adding a custom control to the SharePoint 2010 Team Site Wiki Page Template ( wkpstd.aspx ) programm

Topic This is maybe my last post about the Team Site Wiki Page customization with the aim of exceeding its limitations. This time we are going to customize the unique template ( wkpstd.aspx) by replacing the control that renders the editable content by a custom one. In this post example, we will take advantage of the use of this custom control to render not editable additional contents, for instance, a header and a footer that could be the same for a specific Wiki Page Library. Of course, we are not going to really customize the template, but we are going to use a delegate control to replace the control at runtime. Here are the screen shots of the result: We can see a non editable Header and Footer on the Team Site Wiki Page In edit mode these additional contents are not rendered, but we can add new content as usual And of course, after having saved the page, the new content is rendered wtih the non editable Header and Footer. Steps required   If you look at the Team Site Wiki Page template, wkpstd.aspx, you can see the control that is rendering the editable content/ <SharePoint:EmbeddedFormField ID="WikiField" FieldName="WikiField" ControlMode="Display" runat="server" /> We are first going to create a custom EmbeddedFormField control Then, we are going to use a delegate control to replace the native EmbeddedFor

How to Access Parent Page (.aspx) control (IDs) from its child User Control (.ascx)

I have a parent .aspx page that has a asp:panel control in it, and this parent .aspx is also referencing a user control that I registered in that .aspx. Lets just call it usercontrolA.ascx for this post.The user control has a radiobuttonlist itself.Based on a selection from the radiotbuttonlist in the user control, I want to be able to hide the asp:panel in my .aspx (parent) but unfortunately I cant' get it to work:parentPanel.visible = true;  <<< I trried this in usercontrolA.ascx.csBut the user control doesn't know about the panel in the parent .aspxSo do I need to expose that somehow from the parent so that I can access it from the code behind of the child .ascx?  How?

Client Javascript runs, but then page errors out when clicking on a control that uses postback

Using this script on a button click <script language="javascript"> function printdiv(printpage) { var headstr = "<html><head><title></title></head><body>"; var footstr = "</body>"; var newstr = document.all.item(printpage).innerHTML; var oldstr = document.body.innerHTML; document.body.innerHTML = headstr + newstr + footstr; window.print(); document.body.innerHTML = oldstr; return false; } </script> After it is done, I can't click on my calendar control.  I was hoping to add somethign that would force a refresh in the script, but nothing I do works. Any thoughts?  Thanks! 

I need a suggestion to bind the data in share point 2010 page.Suggest some right control to do this.

In my visual web part i need a control to display rows with grouping option. In my web part i am going to display all my document library and  announcement so that i need groping option. I need to do grouping option in the view.so what is the best control u suggest me to bind my data? 

Migrating from 2005 to 2008R2 - now 10x slower

I host a RS2005 instance on a Win2003 server (2gb ram; 3ghz xeon cpu) which is performing quite nicely. I'm now migrating to a RS2008R2 instance on Win2008R2 server (12GB ram; Xeon 5110, 64bit) and hoping for a big performance increase. Instead I see the reverse. It's a 5-10second delay every time I select an option in the Report Manager. Similarly, on demand reports are taking 15 seconds instead of 3 seconds. The Win2008R2 server is a brand new machine, freshly installed with OS and SQL. I have a test Win2008R2 server inhouse (much lower specs) which runs fine. What can I try? The hosting provider has currently disabled McAfee antivirus, with no noticeable difference. Any help would be MUCH appreciated.

SQL Query runs much slower with sql command than in management studio

I have two UPDATE queries, when executed together in SQL Command, takes about 5 minuts. but when executing together in management studio,totally takes about only 1 minute. I have indexes on all the fields used in join. Have done some research and tries some suggested ways such as use various SET options. not quite useful. Update   n Set FITokenCount = b.TokenCount , FISignificantOPTotal = b.SignificantOPTotal , FIInsignificantOPTotal = b.InsignificantOPTotal From   @ScanDataScanResultsTableName n   INNER HASH JOIN @ScanDataTableName b   ON n.InstitutionNumber = b.InstitutionNumber and n.DataItemUniqueID = b.DataItemUniqueID ;   Update   n Set WLTokenCount = wn.TokenCount , WLSignificantOPTotal = wn.SignificantOPTotal , WLInsignificantOPTotal = wn.InsignificantOPTotal From   @ScanDataScanResultsTableName n   INNER HASH JOIN WatchListEntryNames wn   ON n.WatchListEntryNameID = wn.WatchListEntryNameID --and wn.Type = 1;   Any inputs will be greatly appreiated.   Thanks,   Kevin        
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend