asp.net - UpdatePanel and Timer not working -
i have code:
<form id="form1" runat="server"> <div> <asp:scriptmanager id="scriptmanager1" runat="server"> </asp:scriptmanager> <asp:timer id="timer1" runat="server" interval="1000" ontick="tickevent"></asp:timer> <asp:updateprogress id="updateprogress1" runat="server"> <progresstemplate> <img src="http://jimpunk.net/loading/wp-content/uploads/loading18.gif" /> </progresstemplate> </asp:updateprogress> <asp:updatepanel id="updatepanel1" runat="server"> <triggers> <asp:asyncpostbacktrigger controlid="timer1" eventname="tick" /> </triggers> <contenttemplate> <asp:label id="label1" runat="server" text="label"></asp:label> </contenttemplate> </asp:updatepanel> </div> </form>
codebehind code:
protected void tickevent(object sender, eventargs e) { label1.text = datetime.now.tostring(); }
but when run page, time doesn't update , progresspanel doesn't show. can 1 help?
i solved recopying scripts files scripts folder
Comments
Post a Comment