You can mix asp and html in the same file as long as it has a .asp extension.
Example:
Create two files. Name one mainpage.asp and the other
iframe_content.htm then put the following code into the respective
files , save both and then run mainpage.asp.
iframe_content.htm
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Iframe Content</title>
</head>
<body bgcolor="#FFFF00">
<div align="center">This is an html page that goes into the iframe.</div>
<div align="center">It could also be an asp page</div>
</body>
</html> |
mainpage.asp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Main Page</title>
</head>
<body bgcolor="#000080">
<div align="center">
<% Response.write "<p
style=""color:#FFFFFF;"">This is an asp page that contains an
Iframe</p>" %>
</div>
<div align="center">
<iframe name="Iframe1"
src="iframe_content.htm"> Your browser does not support inline
frames.</iframe>
</div>
</body>
</html> |
Not how the text in mainpage.asp is written with asp but the rest of the page is straight html.
Edited by dpyers - 23 July 2005 at 2:45am