reload a page

Results 1 to 2 of 2

Thread: reload a page

  1. #1
    Join Date
    Dec 1969

    Default reload a page

    Can someone tell me how I can reload a page in my code? My problem is I&#039;ve updated the information in my datagrid and then I&#039;m requerying the database and rebinding it to my datagrid but I don&#039;t see the results until I manually refresh my page.<BR><BR>Thanks in advance for your help,<BR>Ricki

  2. #2
    Join Date
    Dec 1969

    Default RE: reload a page

    Here is how I do it.<BR><BR>Sub Page_Reload()<BR> Dim PageURL as String <BR>&#039; gets the path of the current page so it can redirect to itself<BR> PageURL = Request.ServerVariables("URL") <BR> <BR>&#039; keeps any variables stored in QueryString collection<BR>if Len( Request.ServerVariables("QUERY_STRING")) &#062; then <BR>PageURL &= "?" & Request.ServerVariables("QUERY_STRING")<BR>end if<BR>&#039; redirects the page to itself to force a reload <BR> Response.Redirect (PageURL) <BR>End Sub<BR><BR>Aaron

Posting Permissions

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