472,336 Members | 1,301 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,336 software developers and data experts.

Refresh page with ASP command

I am making a form in an ASP page. One button will send the information, the other will reset the form. When the form is sent, all values are loaded into cookies, in case the form is incomplete and returned. When the reset button is clicked, the cookies, where the values of the form are stored, will be emptied and the page should be reloaded. How do I reload the ASP page with an ASP command?
May 19 '06 #1
4 47004
1,754 Expert 1GB
hi there,

to reload a page after a preset delay..
Expand|Select|Wrap|Line Numbers
  1. <META HTTP-EQUIV="refresh" CONTENT="15">
to redirect the page to another page after a preset time
Expand|Select|Wrap|Line Numbers
  1. <META HTTP-EQUIV="refresh" CONTENT="5; URL=http://www.somedomain.com/somepage.html">
to reload a page with java script - link
Expand|Select|Wrap|Line Numbers
  1. <A HREF="javascript:history.go(0)">Click to refresh the page</A>
to reload a page with java script - button
Expand|Select|Wrap|Line Numbers
  1. <FORM>
  2. <INPUT TYPE="button" onClick="history.go(0)" VALUE="Refresh">
  3. </FORM> 
good luck my fren..
Jun 28 '06 #2
You could do

Response.AddHeader "Refresh", "1"

or I've also used


just redirecting it to the same page, thats the only way I know to do it immediately.
Jul 6 '06 #3
Have some solution:
<script type="text/javascript">
function setr()
{DelCookie("_pageRefresh_");document.cookie = "_pageRefresh_=1;path=/;";}

function DelCookie(sName)
{document.cookie = sName + "=; expires=Fri, 31 Dec 1980 23:59:59 GMT;";}

function CheckRefresh()
{ var aCookie = document.cookie.split("; ");
for(var i=0;i<aCookie.length;i++){
var aCrumb = aCookie[i].split("=");
if (aCrumb[0]=="_pageRefresh_")
{DelCookie("_pageRefresh_");window.location.reload (true);break;}

<a href="javascript:setr();history.go(-1);" style="padding-right:5px" title="Go Back"><img src="../images/back.gif" alt="Go Back" border="0"></a>
Nov 24 '06 #4
excuse me guys......
im new to this... so please clear my doubt... cant we do this using viewstate??...
Nov 25 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Dave Smithz | last post by:
Hi there, Working on the PHP DB I took over I have just come across a problem. When the user presses refresh in some circumstances the command...
by: Dave | last post by:
Hey, I'm running a localhost web server...W2K with IIS 5.0, and I'm trying to use ASP/ADO to access my Access database. When I first load the...
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a...
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up...
by: Just D. | last post by:
All, How should we refresh the current aspx frame? I disabled caching using this command on Page_Load():...
by: Jim Little | last post by:
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am...
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application and I need to find a way to cause a page refresh from within my application. Does anyone know how to force...
by: achoo | last post by:
Is it possible to extend a Web service proxy so that it understands an HTTP refresh page? Explanation: * The Web service proxy was...
by: J055 | last post by:
Hi I have a GridView which includes the ability to delete rows. This works fine accept for when a naughty user decides to refresh the browser...
by: Areric | last post by:
Hey all, Does anyone know how i can detect a refresh of the page in the unload event on the server? The problem I'm having is that refresh...
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.