Timer control in Asp/Ajax problem

Flicker-free ASP/Ajax pages

Page 1 of 1

2 Replies - 4631 Views - Last Post: 22 January 2010 - 05:46 AM Rate Topic: -----

#1 shongololo1983  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 22-October 09

Timer control in Asp/Ajax problem

Posted 21 January 2010 - 07:53 PM

Good evening all, I am very new to ASP and Ajax and have this assignment that I need to hand in, one of the requirements is that I have a timer at the bottom of my pages, so I inserted that into my master page that way it shows up on all my child pages...so far so good

The problem I am having is that on any control that I add that requires user input (for example a login-box) the bloody page updates with the timer (every 1000ms)
The solution to this from reading online is to have the timer in a update panel as well as my control in a seperate update panel, but this does not seem to work at all.

NOT looking for anyone to do my homework but I would really appreciate any advice or pointers,

I have my code available if anyone would like to see it


masterpage:
<table class="style3">
			<tr>
				<td>
					<asp:UpdatePanel ID="UpdatePanel3" runat="server">
					<ContentTemplate>
					<asp:Label ID="Label1" runat="server">
					</asp:Label>
					<asp:Timer ID="Timer2" runat="server" Interval="1000" ontick="Timer1_Tick">
					</asp:Timer>
					</ContentTemplate>
					</asp:UpdatePanel>
				</td>
			</tr>
		</table>



Then I have this for my login page....

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<asp:UpdatePanel ID="UpdatePanel2" runat="server">
	<ContentTemplate>
	<asp:LoginView ID="LoginView1" runat="server">
	<AnonymousTemplate>
		<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Home.aspx">
		</asp:Login>
	</AnonymousTemplate>
</asp:LoginView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>




Thank you in advance for any help it is much appreciated

Shongololo

Is This A Good Question/Topic? 0
  • +

Replies To: Timer control in Asp/Ajax problem

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Timer control in Asp/Ajax problem

Posted 21 January 2010 - 09:06 PM

Can you post the entire source for the master page?

Is this UpdatePanel inside of another UpdatePanel?
Was This Post Helpful? 0
  • +
  • -

#3 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Timer control in Asp/Ajax problem

Posted 22 January 2010 - 05:46 AM

Why is a timer running on a Login page? What is the purpose of the timer for a login page? What are you wanting to update every 1 second?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1