Solved

CALLING HTML FILE FROM ASP

Posted on 1999-01-25
7
137 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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

630 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