Good evening,
I'm developing a web site with Visual Web Developer Express 2008 and I'm using AJAX extension. The structure of the default.aspx page is the following:
sp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="5000">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
On the server side, in the Sub Timer1_Tick, I update the images and texts of some items. The code is the following:
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
...
If CInt(infoISOLA("status")) = 0 Then
ImageISOLA.ImageUrl = "~/images/IsolaSwitchOff.png"
ElseIf (infoISOLA("status")) = 1 Then
ImageISOLA.ImageUrl = "~/images/IsolaOff.png"
ElseIf (infoISOLA("status")) = 2 Then
ImageISOLA.ImageUrl = "~/images/IsolaOn.png"
End If
PowerISOLA.Text = Math.Round(CDbl(infoISOLA("power")) / 1000, 1, MidpointRounding.AwayFromZero).ToString
EnergyISOLA.Text = Math.Round(CDbl(infoISOLA("energy")) / 1000, 1, MidpointRounding.AwayFromZero).ToString
....
End Sub
When I use a web browser (chrome, ie, firefox) to see the page there is a growing memory usage and after few days the web browser crashes.
How Can I solve this problem?
Thank you