| Author: Meetu Choudhary 10 Oct 2008 | Member Level: Gold | Rating: 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 2008 | Member Level: Bronze | Rating: Points: 0 |
write function in page load
|
| Author: Ravisankar 10 Oct 2008 | Member Level: Silver | Rating: Points: 1 |
i have placed the timer control in the child page. inside the <ContentPlaceHolder>
|
| Author: Mari raj k 10 Oct 2008 | Member Level: Silver | Rating: Points: 0 |
check ispostback function
|
| Author: Varun Bansal 10 Oct 2008 | Member Level: Gold | Rating: 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 2008 | Member Level: Silver | Rating: 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 2008 | Member Level: Gold | Rating: 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 2008 | Member Level: Silver | Rating: 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.
|