C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

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




Ajax timer Control


Posted Date: 10 Oct 2008      Total Responses: 8

Posted By: Ravisankar       Member Level: Silver     Points: 1


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: Meetu Choudhary    10 Oct 2008Member Level: GoldRating:     Points: 2
Where have you placed the timer control in the master page or some where else ?

--
thanks and regards
Meetu Choudhary


Author: Abhi    10 Oct 2008Member Level: BronzeRating:     Points: 0
write function in page load


Author: Ravisankar    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


Author: Ravisankar    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: Meetu Choudhary    10 Oct 2008Member Level: GoldRating:     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





Author: Ravisankar    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
You must Sign In to post a response.
Next : Css files
Previous : GridView
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference calls

Contact Us    Privacy Policy    Terms Of Use