ASP.NET - timer - Asked By msakt on 17-May-12 04:08 AM

i have one function for sp fetch data from database,its take 35 sec for display...this function call in page load..

      now i want,first display page without call that fuction next call this function without any ui interaction
Chintan Vaghela replied to msakt on 17-May-12 04:25 AM

Hello,

 

Added your function in Page Load

When first time Page is Load then not goes to in this function. After then u do any operation in page then it call this funciton

protected void Page_Load(object sender, EventArgs e)

      {

        if (Page.IsPostBack)

        {

          //Call YOur FUnction HERE

        }

      }

Hope this helpful!

Thanks

 

Somesh Yadav replied to msakt on 17-May-12 05:37 AM
check this,

http://www.c-sharpcorner.com/Blogs/1318/timer-control-in-Asp-Net.aspx

http://www.dotnetfunda.com/codes/code1722-timer-control-in-aspnet.aspx