473,738 Members | 11,146 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="MissionSche duleID"

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

class="MainMast erDataNormal"

frameborder="0"

src="Schedule.h tm"

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="ColorScrol lbar.js"></script>

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

<div class="MainMast erDataNormal">

<h4 ...snip...

</div>

</body>

</html>
Aug 27 '08 #1
2 1221
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="StyleShee t.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**********@r oadrunner.comwr ote in message
news:e9******** ******@TK2MSFTN GP05.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="MissionSche duleID"

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

class="MainMast erDataNormal"

frameborder="0"

src="Schedule.h tm"

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="ColorScrol lbar.js"></script>

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

<div class="MainMast erDataNormal">

<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., MainMasterDataN ormal

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.comwro te in message
news:eZ******** ********@TK2MSF TNGP02.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="StyleShee t.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**********@r oadrunner.comwr ote in message
news:e9******** ******@TK2MSFTN GP05.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="MissionSche duleID"

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

class="MainMas terDataNormal"

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>Schedul e</title>
</head>

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

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

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

<div class="MainMast erDataNormal">

<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
3051
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. Example: Before: class Mess(object): def complicated(self, count):
13
2810
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 class:"mystile">..... </p> </li> 3° style ... </ul> the call to class
10
2362
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 top border. Is it possible to have more than 1 style at the same level (parent node) when using a SiteMap? I want it to appear something like this and I can only find a way to either have the border on all root nodes or none at all. In...
8
2468
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
6698
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 and also my first true attempt at using master pages. I tried setting up a style sheet with a simple setting to float an image to the right and it had no effect on the image. Then, I tried putting the style code in my ASPX file as such,
8
13535
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" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
3740
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 Web Content Form? I cannot use style tags in a Web Content Form, and I am having trouble figuring out how to add all the desired css properties to a System.Web.UI.WebControls.Style object. Can anyone help me? Thanks. -- Nathan Sokalski...
4
1270
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 assuming this will be done in the PreInit eventhandler, but i cannot find the right way to do this. Can someone help me? Thanks. Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
0
1114
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
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.