[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1669
  • Last Modified:

auto submit an ASP page form

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
Tom Knowlton
Asked:
Tom Knowlton
2 Solutions
 
dfiala13Commented:
What are you trying to do?
0
 
khurram007Commented:
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
 
jmcraigCommented:


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
 
ramesh12Commented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now