Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

auto submit an ASP page form

Posted on 2004-04-03
4
1,656 Views
Last Modified: 2008-01-09
Is there a way to have a <form> on an ASP page.

as soon as the form is finished loading I want it to redirect to another ASP page.
0
Comment
Question by:knowlton
4 Comments
 
LVL 12

Expert Comment

by:dfiala13
ID: 10750886
What are you trying to do?
0
 
LVL 2

Expert Comment

by:khurram007
ID: 10750957
Yeah... Please explain you question... it is not clear... Atleast tell what are u trying to do so we could help u in a much better manner.

Khurram
0
 
LVL 1

Assisted Solution

by:jmcraig
jmcraig earned 250 total points
ID: 10751091


Put this in the top of you page

<META HTTP-EQUIV="refresh" CONTENT="2; URL=/Index.asp">

where the  

URL= /index.asp  

is the page you wish to direct to

Content = "2

is how many seconds to wait before redirect

Joshua
0
 
LVL 7

Accepted Solution

by:
ramesh12 earned 250 total points
ID: 10751199
If you are asking for a redirction you can do that using

response.redirect "Your Url"

after the form loads

but if you want to submit the asp page use javascript after the </form> tag like this

<script language="javascript">
//document.formname.method="method of submission" // (POST/GET)
document.formname.action="your url";
document.formname.submit();
</script>


 
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question