Thursday, August 19, 2010

Do Post Back Handling

[asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick" Interval="300000"]//For Five Minute
[/asp:Timer]

[script language="javascript" type="text/javascript"]

function DoPostBack() {
__doPostBack('Timer1', 'My Argument');
}

[/script]

Add in Webconfige file

[httpHandlers]
[add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/]
[/httpHandlers]

No comments: