CALLING HTML FILE FROM ASP

Is it possible to call a HTML File from ASP?
If u want to call an ASP from another ASP.not during onsubmit but on some other circumstance
bbanupamaAsked:
Who is Participating?
 
rafisternConnect With a Mentor Commented:
If you mean to redirect to an html file then do this

In the very first line of the file put:

<% Response.Buffer=True %>

Then, before any data has been returned to the client you can write the following line:

Response.Redirect "http://www.somewhere.com/apage.html"

and redirect to that page

0
 
vendrigCommented:
Can you please explain better what you're looking for.
In ASP it's possible to read all sorts of files, including HTML.
0
 
MasseyMCommented:
Or, use the Server Side Includes

<!-- #Include Virtual="/path/to/yourfile.htm" -->
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
rafisternCommented:
Yes, but you might want to make it part of a conditional statement or actually redirect to it, not include it.
0
 
MasseyMCommented:
I am not saying you are wrong.. just another way of "including: HTML files.
0
 
rafisternCommented:
No offence intended. Just poining out the reasons why I think my answer is better.
0
 
MagicJCommented:
This is just an addition to rafistern's answer it's better to do a "response.clear" before attempting a "response.redirect" i.e. to be really safe.

Best Of Luck
MagicJ
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.