Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

HTML to ASP feedback form needs to go back to HTML "thank you" page

hi.
im a complete newbie to ASP.
somehow i've managed to put in a feedback form in HTM on my site which when submitted to a ASP page to take the name, contact number, email etc and send it to me on my email address.

this is done using CDONTS. the last line of the code is "objCDOMail.Send".

now, my query is, provided this email goes through successfully, the asp page should redirect to another "thankyou.htm" page which is nicely formatted like the rest of my site.

any help is appreciated.
thanks.
0
kunalap
Asked:
kunalap
1 Solution
 
wellholeCommented:
Put this after all the code you run...... objCDOMail.Send

Response.Redirect("thankyou.htm", True)
0
 
channa_mCommented:
After objCDOMail.Send line use the following code

Response.Redirect("ThankYou.html", true);

Open in new window

0
 
kunalapAuthor Commented:
thanks. i had figured it out on my own in the meantime.
thank you.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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