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

need help on easy ASP.NET question

hi there,

i have the following code on my ASPX page..:

<LINK id="myCSS" runat="server" href="../print.css" type="text/css"
rel="stylesheet" />

how do i reference this in the behind VB code so i can make the HREF
dynamic?

thanks,
Paul
Nov 19 '05 #1
3 1051
protected myCSS as HtmlControls.HtmlGenericControl
myCss.Attributes.Add("Href", "styles.css")
--
MY ASP.Net tutorials
http://www.openmymind.net/
"msnnews.msn.com" <mi******@hotmail.com> wrote in message
news:OK****************@TK2MSFTNGP11.phx.gbl...
hi there,

i have the following code on my ASPX page..:

<LINK id="myCSS" runat="server" href="../print.css" type="text/css"
rel="stylesheet" />

how do i reference this in the behind VB code so i can make the HREF
dynamic?

thanks,
Paul

Nov 19 '05 #2
thanks heaps:))

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OW****************@TK2MSFTNGP09.phx.gbl...
protected myCSS as HtmlControls.HtmlGenericControl
myCss.Attributes.Add("Href", "styles.css")
--
MY ASP.Net tutorials
http://www.openmymind.net/
"msnnews.msn.com" <mi******@hotmail.com> wrote in message
news:OK****************@TK2MSFTNGP11.phx.gbl...
hi there,

i have the following code on my ASPX page..:

<LINK id="myCSS" runat="server" href="../print.css" type="text/css"
rel="stylesheet" />

how do i reference this in the behind VB code so i can make the HREF
dynamic?

thanks,
Paul


Nov 19 '05 #3
Try this.

<LINK id="myCSS" runat="server" href='<% = CssPath %>' type="text/css"
rel="stylesheet" />

in your code behind....

Protected Readonly Property CssPath
Get
Reutrn "../print.css" ' or whatever
End Get
End Property

"msnnews.msn.com" <mi******@hotmail.com> wrote in message
news:OK****************@TK2MSFTNGP11.phx.gbl...
hi there,

i have the following code on my ASPX page..:

<LINK id="myCSS" runat="server" href="../print.css" type="text/css"
rel="stylesheet" />

how do i reference this in the behind VB code so i can make the HREF
dynamic?

thanks,
Paul

Nov 19 '05 #4

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

Similar topics

1
by: Don't post to this address | last post by:
Hi, I'm creating a website for my high school. I learned XML and XSL from a book. I've finished the XML and XSLT files. What do I do now? I don't want to make the user of the website have...
1
by: Will | last post by:
(My 4 questins at end after explination) The code below was provided to me to "Popup" a window explaining what a Credit Card Verification Number is and where to find it on a card... it is used as...
29
by: RAY | last post by:
Hi , my boss has asked I sit in on an interview this afternoon and that I create some interview questions on the person's experience. What is C++ used for and why would a company benefit from...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
2
by: Will | last post by:
(My 4 questins at end after explination) The code below was provided to me to "Popup" a window explaining what a Credit Card Verification Number is and where to find it on a card... it is used as...
8
by: Ben Fidge | last post by:
Hi I'm working on a site which requires the users to specify a hotel at which they're staying in London. The complete list of hotels comes to something like 1600 records. Each record consists of...
7
by: Philippe Poulard | last post by:
Hi, RefleX 0.1.3, a general-purpose XML Virtual Machine, is available here : http://reflex.gforge.inria.fr/ In this release, you'll find tutorials for mapping SQL to arbitrary complex XML...
16
by: C++ Hell | last post by:
Hey everyone just designing a quiz for school and managed to write the code for the questions and answers thou i have to add scores and at the end an overall score does anyone have any idea what to...
3
by: vijaykokate | last post by:
Our company http://www.softnmation.com/ offers its customers a great variety of products. Everything you need can be found in this site. Web Template, CSS Template, Logo Template, Corporate...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.