Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > need help on easy ASP.NET question

Reply
Thread Tools

need help on easy ASP.NET question

 
 
msnnews.msn.com
Guest
Posts: n/a
 
      01-14-2005
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


 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      01-14-2005
protected myCSS as HtmlControls.HtmlGenericControl


myCss.Attributes.Add("Href", "styles.css")


--
MY ASP.Net tutorials
http://www.openmymind.net/


"msnnews.msn.com" <(E-Mail Removed)> wrote in message
news:OKFWajk%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
Milsnips
Guest
Posts: n/a
 
      01-14-2005
thanks heaps)

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OWXKFqk%(E-Mail Removed)...
> protected myCSS as HtmlControls.HtmlGenericControl
>
>
> myCss.Attributes.Add("Href", "styles.css")
>
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "msnnews.msn.com" <(E-Mail Removed)> wrote in message
> news:OKFWajk%(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
David Jessee
Guest
Posts: n/a
 
      01-16-2005
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" <(E-Mail Removed)> wrote in message
news:OKFWajk%(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Is it reasonably easy easy to something like this with python? Bruno Desthuilliers Python 5 08-29-2007 07:40 AM
Stripping audio from qa DVD. Easy or not so easy? GJ Computer Support 1 05-23-2007 02:03 AM
easy to look at and easy to maintain web page menuing system. Hazzard ASP .Net 2 04-06-2004 03:51 AM
need quick answer to easy question Shawn ASP .Net 1 03-06-2004 04:29 PM



Advertisments