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: 141
  • Last Modified:

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
0
bbanupama
Asked:
bbanupama
1 Solution
 
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
 
rafisternCommented:
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
 
MasseyMCommented:
Or, use the Server Side Includes

<!-- #Include Virtual="/path/to/yourfile.htm" -->
0
Independent Software Vendors: 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!

 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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