Hi i am sankar.I am using dotnet 2005 .and then i want refresh a method only using timer control,but i have used timer control in my application,but it's didn't work properly.So please tell me how to use timer control in asp.net 2.0?
Thanks and Regards,
Sankar
Loading
Anuja PawarPosted Dec 1, 2011, 12:56 AM
sankarPosted Nov 30, 2011, 11:25 PM
Thanks for your post.
Anuja PawarPosted Nov 30, 2011, 5:28 AM
sankarPosted Nov 30, 2011, 5:25 AM
Now that's working fine.I found that problem.
Thanks lot
sankarPosted Nov 30, 2011, 4:41 AM
This is displaying only Time,but didn't refresh the time in asp.net 2.0.But this coding properly working in asp.net 3.5.What i do timer control run in asp.net 2.0?
Satyapriya NayakPosted Nov 30, 2011, 4:37 AM
Please refer the below link
http://www.dotnetfunda.com/tutorials/ajax/timer.aspx
Thanks
Anuja PawarPosted Nov 30, 2011, 4:22 AM
It should work
Pls refer this two links, hope it helps :)
http://msdn.microsoft.com/en-us/library/bb386404.aspx
http://www.devmanuals.com/tutorials/ms/aspdotnet/timer.html
sankarPosted Nov 30, 2011, 4:08 AM
I have used this coding,but didn't refresh a timer.
My coding below
Code behind:
protected void Timer1_Tick(object sender, EventArgs e)
{
date.Text = DateTime.Now.ToString();
}
protected void Page_Load(object sender, EventArgs e)
{
date.Text = DateTime.Now.ToString();
}
Anuja PawarPosted Nov 30, 2011, 3:12 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
We only have a single CodeBehind function, which you should add to your CodeBehind file:
protected void UpdateTimer_Tick(object sender, EventArgs e)
{
DateStampLabel.Text = DateTime.Now.ToString();
}