Can .htm use the style class from the master.

W

_Who

Hope I'm not posting twice.
Posted this a while ago but it does not show in my ng.


I have a .htm file that shows in an iframe.

I need the .htm to use a style class from the master.

The context appears to use it with no problem

But I don't know how to propagate it into the .htm



This is from the context file

<iframe runat="server" id="MissionScheduleID"



HOPED THIS WOULD AFFECT THE .HTM BUT IT DIDN"T

class="MainMasterDataNormal"



frameborder="0"

src="Schedule.htm"

width="100%" height="100%"></iframe>







This is the .htm with the text removed

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Schedule</title>


</head>

<body style="text-align:center" >

<script type="text/javascript" src="ColorScrollbar.js"></script>



I DIDN"T THINK THIS WOULD WORK AND IT DIDN"T

<div class="MainMasterDataNormal">



<h4 ...snip...

</div>

</body>

</html>
 
D

David Wier

You'd still need some way of linking the css file to the HTML file - - if
you have a .css file, you must put a link (within the head tags) to that
file within your HTML file:
<link rel="stylesheet" href="StyleSheet.css" type="text/css">


David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
http://cg.augustwind.com - ControlGrouper (ASP.Net control) - change
properties of multiple controls in one place
 
W

_Who

My problem stems from the fact that I let the user at run time change which
..css file is active
All the files contain the same entry names; e.g., MainMasterDataNormal

I have a routine in main.master.vb that does the changing
and a session variable to identify which is being used.

Is the session variable available inside the.htm file?

Can I put the routine someplace so that it is accessible from the .htm file?

It's a .vb routine so I don't know how that could possibly work.


Thanks for answering
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top