473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Can .htm use the style class from the master.

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>
Aug 27 '08 #1
2 1202
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
"_Who" <Ca**********@roadrunner.comwrote in message
news:e9**************@TK2MSFTNGP05.phx.gbl...
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>


Aug 27 '08 #2
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

"David Wier" <dw@dw.comwrote in message
news:eZ****************@TK2MSFTNGP02.phx.gbl...
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
"_Who" <Ca**********@roadrunner.comwrote in message
news:e9**************@TK2MSFTNGP05.phx.gbl...
>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>



Aug 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Harry Pehkonen | last post by:
I have been defining new class methods when I'm trying to simplify some code. But I'm thinking I should just define functions within that method because they aren't useful from the outside anyway....
13
by: arreeess | last post by:
i wont used three styles in the element of a list; i have does so: <ul> <li> ............................. </li> first style <li> <p> .....................</p> </li> 2° style <li> <p...
10
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
8
by: Ganesh Muthuvelu | last post by:
Hello, I am a ASPX page where I have defined the style for the head element. ****************** <head runat="server" > <style type="text/css"> .MyClass { background-color: aqua; } </style>
8
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
5
by: Nathan Sokalski | last post by:
I have css that would normally be placed in style tags in the header of the Master page that I want to add programmatically for a specific Web Content Form (the *.aspx page). How do I do this for a...
4
by: Nathan Sokalski | last post by:
I have a content page from which I need to add a style rule to be used by the page. Since content pages only have the content tags, I obviously need to edit the Master page's style using code. I am...
0
by: _Who | last post by:
I have a .htm the shows in an iframe. I need the .htm to use the 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
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.