Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CALLING HTML FILE FROM ASP

Posted on 1999-01-25
7
Medium Priority
?
139 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
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 20 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
Technology Partners: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

916 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