C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Training   ASP.NET Web Hosting    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

Play Silverlight Games or Submit your Silverlight applications and earn 90% AdSense revenue.

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Forums » .NET » ASP.NET »

Ajax timer Control


Posted Date: 10 Oct 2008      Posted By: Ravisanker      Member Level: Silver     Points: 1   Responses: 8



Hi
I'm using a Ajax Timer control in my aspx page.
i have done as in http://aspalliance.com/1417_Working_with_ASPNET_AJAX_Timer_Control.all

but my all pages is getting refreshed as each second in the timer control moves.
My tree view in the master page is also getting refreshed as the timer ticks each second.


its urgent ....
plz help ..





Responses

Author: Miss Meetu Choudhary    10 Oct 2008Member Level: DiamondRating:     Points: 2

Where have you placed the timer control in the master page or some where else ?

--
thanks and regards
Meetu Choudhary



Thanks and Regards
Miss Meetu Choudhary
Site Coordinator
Do not forget to Rate the post...
Go Green Save Green
knowing is not enough we must apply...



Author: Abhi    10 Oct 2008Member Level: BronzeRating:     Points: 0

write function in page load


Author: Ravisanker    10 Oct 2008Member Level: SilverRating:     Points: 1

i have placed the timer control in the child page.
inside the <ContentPlaceHolder>



Author: Mari raj k    10 Oct 2008Member Level: SilverRating:     Points: 0

check ispostback function


Author: Varun Bansal    10 Oct 2008Member Level: GoldRating:     Points: 4

hi,
according this http://aspalliance.com/1417_Working_with_ASPNET_AJAX_Timer_Control.all
exp..

i think that u have not set the trigger properties of updatepanel..
so plz set the trigger properties of updatepanel by timer control and set also event of timer control is ticks in update panel trigger properties.. i hope that it work properly...

regards
varun bansal

Regards
Varun bansal
Do ot forget to Rate the post.....
Click here for visiting in my blogs



Author: Ravisanker    10 Oct 2008Member Level: SilverRating:     Points: 6

this is my code
plz chk

________________
aspx
-----
<asp:Timer id="tmrElapsed" runat="server" Interval="1000" OnTick="tmrElapsed_Tick"></asp:Timer>

<asp:UpdatePanel id="UpdatePanel1" runat="server">
<contenttemplate>
<table>
<tr id="trAllLabels" runat="server">
<td valign="top">


<asp:Label id="lblElapsed" runat="server" Visible="false"></asp:Label>
<asp:Label id="lblTime" runat="server" Font-Bold="true" ForeColor="blue" Text="Time:"></asp:Label>
<asp:Label id="lblHr" runat="server"></asp:Label>
<asp:Label id="lblColon1" runat="server" Text=":"></asp:Label>
<asp:Label id="lblMinute" runat="server"></asp:Label>
<asp:Label id="lblColon2" runat="server" Text=":"></asp:Label>
<asp:Label id="lblClock" runat="server"></asp:Label>
<asp:Label id="lblElapsedTime" runat="server" Font-Bold="true" ForeColor="blue" Text="Elapsed Time"></asp:Label>
<asp:Label id="lblColon3" runat="server" Text=":"></asp:Label>
<asp:Label id="lblHr1" runat="server"></asp:Label>
<asp:Label id="lblColon4" runat="server" Text=":"></asp:Label>
<asp:Label id="lblMinute1" runat="server"></asp:Label>
<asp:Label id="lblColon5" runat="server" Text=":"></asp:Label>
<asp:Label id="lblClock1" runat="server"></asp:Label>


</td>
</tr>
<tr>
</table>
</contenttemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="tmrElapsed" EventName="tmrElapsed_Tick" />
</Triggers>
</asp:UpdatePanel>


asp.cs
-------
protected void tmrElapsed_Tick(object sender, EventArgs e)
{
//lblTimer.Text = DateTime.Now.ToLongTimeString()

if (!IsPostBack)
{
-----------
-----------

}
}



Author: Miss Meetu Choudhary    10 Oct 2008Member Level: DiamondRating:     Points: 4

Please Do the following and then let me know

1. Place your timer control and update panel inside the contentplace holder.

2. Place the scriptmanger control before the updatepanel.

--
Thanks and Regards
Meetu Choudhary
-
Please rate the post if it helps you



Thanks and Regards
Miss Meetu Choudhary
Site Coordinator
Do not forget to Rate the post...
Go Green Save Green
knowing is not enough we must apply...



Author: Ravisanker    10 Oct 2008Member Level: SilverRating:     Points: 3

hi
thnkx for ur reply

i hav placed my code already inside contentplace but then also pbm is there.
Script manager is there is master page since no two script manger are not allowed in a page.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Css files
Previous : GridView
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use