Click here to Skip to main content
16,016,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have written following code in my .aspx page

<asp:PlaceHolder ID="PlaceTest" runat="server">
<asp:Timer ID="TimerTest" OnTick="TimerTest_Check" runat="server" interval="60000">

<asp:UpdatePanel ID="updTest" UpdateMode="Conditional" runat="server">
<triggers><asp:AsyncPostBackTrigger ControlID="TimerTest" EventName="Check" /> <contenttemplate>
<uc1:ctrlTest ID="ctrlTest1" runat="server" />




also related timer event is also written below.
protected void TimerTest_Check(object sender, EventArgs e)
{
ctrlTest ctrl = (ctrlTest)LoadControl("ctrlTest.ascx");
PlaceTest.Controls.Add(ctrl);
}

purpose is to refresh control in update panel after every specified interval. But i am not getting any output. its showing blank page.

Please Help
Posted
Comments
Jibesh 13-Dec-12 1:41am    
check the visible property is set as true.

1 solution

Hi,

I did not saw any errors at you code ,

you can try this http://msdn.microsoft.com/en-us/library/system.web.ui.timer.interval.aspx[^]

may be place holder name is not matched with Masterpage
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900