Solved

auto submit an ASP page form

Posted on 2004-04-03
4
1,647 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
Comment Utility
What are you trying to do?
0
 
LVL 2

Expert Comment

by:khurram007
Comment Utility
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
Comment Utility


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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now