Solved

CALLING HTML FILE FROM ASP

Posted on 1999-01-25
7
129 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 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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 Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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)

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now