473,400 Members | 2,145 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,400 software developers and data experts.

Reading stylesheet in .vb

Hi,
I have a stylesheet (.css) file with classes in e.g.
..csHeader_tdLogo
{
background-position: top left;
vertical-align: top;
background-image: url(Images/Header_Logo.gif);
width: 171px;
background-repeat: no-repeat;
height:50px;
}

Is there anyway in vb.net 2003 to read the value of the height in the
actual server-side code?
i.e. in VB, there is an object called 'Style'. Can we populate this
object with the values of .csHeader_tdLogo?

Thanks in advance,

Matt
Jun 27 '08 #1
4 1479
IMO your best bet is to explain what is the problem you are trying to solve.
--
Patrice

"matt urbanowski" <sa***@matturbanowski.co.uka écrit dans le message de
groupe de discussion :
84**********************************...oglegroups.com...
Hi,
I have a stylesheet (.css) file with classes in e.g.
.csHeader_tdLogo
{
background-position: top left;
vertical-align: top;
background-image: url(Images/Header_Logo.gif);
width: 171px;
background-repeat: no-repeat;
height:50px;
}

Is there anyway in vb.net 2003 to read the value of the height in the
actual server-side code?
i.e. in VB, there is an object called 'Style'. Can we populate this
object with the values of .csHeader_tdLogo?

Thanks in advance,

Matt

Jun 27 '08 #2
On 14 May, 18:12, "Patrice" <http://www.chez.com/scribe/wrote:
IMO your best bet is to explain what is the problem you are trying to solve.

--
Patrice

"matt urbanowski" <sa...@matturbanowski.co.uka écrit dans le message de
groupe de discussion :
8401b09c-3113-4a48-8241-7105b7012...@r66g2000hsg.googlegroups.com...
Hi,
I have a stylesheet (.css) file with classes in e.g.
.csHeader_tdLogo
{
*background-position: top left;
*vertical-align: top;
*background-image: url(Images/Header_Logo.gif);
*width: 171px;
*background-repeat: no-repeat;
*height:50px;
}
Is there anyway in vb.net 2003 to read the value of the height in the
actual server-side code?
i.e. in VB, there is an object called 'Style'. Can we populate this
object with the values of .csHeader_tdLogo?
Thanks in advance,
Matt- Hide quoted text -

- Show quoted text -
Hi,
Well I have a main form with several frames on it. In the top frame,
there is an image which has the style I showed above.
This style has a height to it.
However, if you increase the height of this image, it does not change
the height of the actual frame so part of the image will get cut off.
Is there anyway I can change the height of the frame dynamically based
upon just the height within that style?
I was trying to do it by using the <% %tages within the frame
properties.

Thanks
Jun 27 '08 #3
Hi,
I have a stylesheet (.css) file with classes in e.g.
.csHeader_tdLogo
{
background-position: top left;
vertical-align: top;
background-image: url(Images/Header_Logo.gif);
width: 171px;
background-repeat: no-repeat;
height:50px;
}
Is there anyway in vb.net 2003 to read the value of the height in the
actual server-side code?
i.e. in VB, there is an object called 'Style'. Can we populate this
object with the values of .csHeader_tdLogo?
Thanks in advance,
Matt- Hide quoted text -

- Show quoted text -

Hi,
Well I have a main form with several frames on it. In the top frame,
there is an image which has the style I showed above.
This style has a height to it.
However, if you increase the height of this image, it does not change
the height of the actual frame so part of the image will get cut off.
Is there anyway I can change the height of the frame dynamically based
upon just the height within that style?
I was trying to do it by using the <% %tages within the frame
properties.
If frames are used just to put together different parts you could consider
to use master pages. It allows to create a single logical document making
respective layout issue likely much easier instead of having two unrelated
parts (frames are basically to make each part work apart and should likely
be very rarely used if at all). Should users be able to move the splitting
line between those frames at will ?

It's been a long time since I tried them so I'm not sure how you could
handle this issue. In the worst case you could read programmatically the
style sheet (perhaps once and keep the height around) and you could then
render the frameset using this value to set the height for the corresponding
frame (or just set it once for all, I assume you do"nt change this image and
htis height very frenquently ?). I'm not sure if another CSS approach only
is possible (the idea would be to siez the frame automatcially depending on
its contents).

My first move would be to ask myself what is the purpose of those frames and
to replace them if possible...

Good luck.

--
Patrice



Jun 27 '08 #4
On 15 May, 12:16, "Patrice" <http://www.chez.com/scribe/wrote:
Hi,
I have a stylesheet (.css) file with classes in e.g.
.csHeader_tdLogo
{
background-position: top left;
vertical-align: top;
background-image: url(Images/Header_Logo.gif);
width: 171px;
background-repeat: no-repeat;
height:50px;
}
Is there anyway in vb.net 2003 to read the value of the height in the
actual server-side code?
i.e. in VB, there is an object called 'Style'. Can we populate this
object with the values of .csHeader_tdLogo?
Thanks in advance,
Matt- Hide quoted text -
- Show quoted text -
Hi,
Well I have a main form with several frames on it. In the top frame,
there is an image which has the style I showed above.
This style has a height to it.
However, if you increase the height of this image, it does not change
the height of the actual frame so part of the image will get cut off.
Is there anyway I can change the height of the frame dynamically based
upon just the height within that style?
I was trying to do it by using the <% %tages within the frame
properties.

If frames are used just to put together different parts you could consider
to use master pages. It allows to create a single logical document making
respective layout issue likely much easier instead of having two unrelated
parts (frames are basically to make each part work apart and should likely
be very rarely used if at all). Should users be able to move the splitting
line between those frames at will ?

It's been a long time since I tried them so I'm not sure how you could
handle this issue. In the worst case you could read programmatically the
style sheet (perhaps once and keep the height around) and you could then
render the frameset using this value to set the height for the corresponding
frame (or just set it once for all, I assume you do"nt change this image and
htis height very frenquently ?). I'm not sure if another CSS approach only
is possible (the idea would be to siez the frame automatcially depending on
its contents).

My first move would be to ask myself what is the purpose of those frames and
to replace them if possible...

Good luck.

--
Patrice- Hide quoted text -

- Show quoted text -
Patrice,
Thank you for your answer. Unfortunately, we have to use frames since
it has the splitter bar. I think reading the stylesheet
programmatically would be the only way.
Would be nice if you could do:
Dim MyStyle as Style
MyStyle.LoadStyle(filename,stylename)
But can't!

Thanks,
Matt
Jun 27 '08 #5

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

Similar topics

12
by: John | last post by:
I have to read a lot of XML for my upcoming project. XML is hard on my eyes. Is there some sort of converter that converts XML to something more eye friendly? maybe like Python? I have seen...
1
by: Dennis Westermann | last post by:
I have the following problem XML-File: <SEARCH> <TAG>'x' or 'y'</TAG> </SEARCH> <CHARLIST> <CHAR>a</CHAR> <CHAR>x</CHAR>
3
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?>...
20
by: Mike Barnard | last post by:
Hi. When looking at a website I can use VIEW / SOURCE to see the HTML, but any external .css files don't show up. Is there a way to see them and see what someone has done to get an effect? ...
7
by: gino | last post by:
Dear all, My monitor was set to 1600x1200 so the fonts in IE is too small for me even when I set the "View->Text Size->Largest"... I don't have previlage to change the monitor resolution... ...
8
by: Lawrence Oluyede | last post by:
Is there a way to treat html tags like simple text? I explain myself, if I have a bunch of xml like <content type="application/xhtml+xml" xml:base="http://loluyede.blogspot.com" xml:lang="en-US"...
5
by: cybernerdsx2 | last post by:
Hi, I am new to XSLT and I would like to use Java to read up the XSLT content and add in a few tags in into the template below: <xsl:template name="hwSpecs"> <!-- adding new tags into here...
1
by: SteveB | last post by:
I'm porting an application from Apache Xerces to .Net and am having a couple of small problems with deserialization. The XML that I'm reading comes from a variety of sources, and there are two...
11
by: ianoble | last post by:
I've been trying to piece together various code snippets to create a lookup table inside my xslt without the need for a supplemental xml file. Here is what I have so far. As of now, it does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.