Periodic update of datagrid

Results 1 to 3 of 3

Thread: Periodic update of datagrid

  1. #1
    Join Date
    Dec 1969

    Default Periodic update of datagrid

    Hi,<BR><BR> I know you can set up a client-side script to trigger every xx seconds, but I need to trigger a server-side update. How can/should I do that?<BR><BR>Thanks,<BR>Deanna

  2. #2
    Join Date
    Dec 1969

    Default RE: Periodic update of datagrid

    This isn&#039;t hi-tek but it works.<BR>I can&#039;t think of any features in to trigger a client side refresh.<BR><BR>Step 1 Client side refresh<BR>------------------------------------------------------<BR>meta tag (note: quotes are supposed to be like that)<BR>&#060;META HTTP-EQUIV="Refresh" CONTENT="30; pageName.aspx?mode=update"&#062;<BR>-Or- javaScript<BR>&#060;script&#062;<BR> setTimeout("location.href=&#039;pageName.aspx?mode =update&#039;",30000); //time in mS<BR>&#060;/script&#062;<BR><BR>Step 2 Call Server Side Update<BR>---------------------------<BR>Note the url we were redirecting to had mode=update. <BR>Use this to trigger the update.<BR>&#060;%if request("mode") ="update" then update()%&#062;<BR>Or trigger the update on Page_Load event<BR><BR><BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default Combine this method with....

    Use the setTimeout method like xdrone said except use the __doPostBack() jscript call that generates. Or somehow submit the webform (form.submit()).. This will allow you to maintain the state of your page. <BR><BR>State in is stored in one hidden variable. As long as that keeps getting posted back to the server all your controls that have state will keep their state.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts