Как вызвать событие timer_tick с главной страницы?
Я разрабатываю веб-сайт в ASP.NET
<asp:ScriptManager ID="ScriptManager2" runat="server" ViewStateMode="Enabled"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <contenttemplate> Hear are five asp.image controls to show the images/////////////////// </contenttemplate> <triggers> <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /> </triggers> <asp:Timer ID="Timer1" runat="server" Interval="2000" OnTick="<% hmc.timer_tick_call(Image1, Image2, Image3, Image4, Image5); %>"> <asp:UpdatePanelAnimationExtender ID="UpdatePanelAnimationExtender1" runat="server" TargetControlID="UpdatePanel1" BehaviorID="animation"> <animations> <onupdating> <sequence> <parallel duration="1" fps="25"> <fadeout animationtarget="Image1" duration="1" fps="25" minimumopacity="0" /> <fadeout animationtarget="Image2" duration="1" fps="25" minimumopacity="0" /> <fadeout animationtarget="Image3" duration="1" fps="25" minimumopacity="0" /> <fadeout animationtarget="Image4" duration="1" fps="25" minimumopacity="0" /> <fadeout animationtarget="Image5" duration="1" fps="25" minimumopacity="0" /> </parallel> </sequence> </onupdating> <onupdated> <sequence> <parallel duration="1" fps="25"> <fadein animationtarget="Image1" duration="1" fps="25" minimumopacity="0" /> <fadein animationtarget="Image2" duration="1" fps="25" minimumopacity="0" /> <fadein animationtarget="Image3" duration="1" fps="25" minimumopacity="0" /> <fadein animationtarget="Image4" duration="1" fps="25" minimumopacity="0" /> <fadein animationtarget="Image5" duration="1" fps="25" minimumopacity="0" /> </parallel> </sequence> </onupdated> </animations>
Пожалуйста, помогите мне.
F-ES Sitecore
Вы не используете mvc, этот вопрос имеет мало смысла.