PC Review


Reply
Thread Tools Rate Thread

Can .htm use the style class from the master.

 
 
_Who
Guest
Posts: n/a
 
      27th Aug 2008
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>


 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      27th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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>
>
>



 
Reply With Quote
 
_Who
Guest
Posts: n/a
 
      27th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:eZJp%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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>
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Master title style and Master Subtitle Style Kim in Melb-Oz Microsoft Powerpoint 7 7th Nov 2009 11:51 PM
Can .htm to use the style class from the master _Who Microsoft ASP .NET 0 27th Aug 2008 02:04 PM
Master Page style Arne Garvander Microsoft ASP .NET 2 1st May 2008 06:15 AM
reference master page class from content page base class? Managed Code Microsoft ASP .NET 3 31st Jul 2006 05:39 PM
Master style document ? Bo Rasmussen Microsoft Word New Users 5 14th Jun 2004 07:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:39 PM.