Force a Refresh on a page

Results 1 to 3 of 3

Thread: Force a Refresh on a page

  1. #1
    Join Date
    Dec 1969
    Posts
    730

    Default Force a Refresh on a page

    I need to force a refresh on a page after running a SQL delete statement. Any ideas?

  2. #2
    Jason Miller Guest

    Default Forced Refresh

    Assuming something triggers the delete (ie a submit button), just point that trigger to the page you&#039re refreshing. Then all you have to do is put the delete command at the top of your script on the condition that it&#039s been called for. Then, after the delete occurs, you can set a flag, go on to render/refresh the page and let the user know that there&#039s a flag.<BR><BR>&#060;% function deleteThis(x)<BR> kill kill kill<BR> nukedEmAll = true<BR> end function<BR><BR> if request.queryString("nukeWhat") &#060;&#062; "" then deleteThis(request.form("target"))<BR><BR> renderGenericPageStuff()<BR> if nukedEmAll then response.write "Offending whatnot has been deleted."<BR> response.write "&#060;form action=""thisPage.asp?nukeWhat=yes"" method=post&#062;" & vbCrLf<BR> renderFormContents()<BR> response.write "&#060;/form&#062;" & vbCrLf<BR> renderPageFooter()

  3. #3
    John Mulligan- NMPC Guest

    Default RE: Force a Refresh on a page

    Try putting this line in your code..<BR><BR>response.Flush()

Posting Permissions

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