Solved

CALLING HTML FILE FROM ASP

Posted on 1999-01-25
7
134 Views
Last Modified: 2010-05-18
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
Comment
Question by:bbanupama
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 2

Expert Comment

by:vendrig
ID: 1845629
Can you please explain better what you're looking for.
In ASP it's possible to read all sorts of files, including HTML.
0
 
LVL 4

Accepted Solution

by:
rafistern earned 10 total points
ID: 1845630
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
 
LVL 10

Expert Comment

by:MasseyM
ID: 1845631
Or, use the Server Side Includes

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

 
LVL 4

Expert Comment

by:rafistern
ID: 1845632
Yes, but you might want to make it part of a conditional statement or actually redirect to it, not include it.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1845633
I am not saying you are wrong.. just another way of "including: HTML files.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1845634
No offence intended. Just poining out the reasons why I think my answer is better.
0
 

Expert Comment

by:MagicJ
ID: 1845635
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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 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