473,698 Members | 2,503 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 1218
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
3047
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
2806
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
2356
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
2466
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
6695
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
13530
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
3726
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
1268
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
1111
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
8609
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
9169
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
9030
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...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5861
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
4371
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...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.