(ASP.NET 1.1) how to automatically change attribute within <LINK> tag

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ppioter

    (ASP.NET 1.1) how to automatically change attribute within <LINK> tag

    hi

    this regards asp.net 1.1
    I have following problem I would like to change attribute of <LINKtag via
    ASP

    I have this definition inside <HEADsection of my aspx file
    <LINK id="stylesheet " href="test1.css " type="text/css" rel="stylesheet " >

    I want it to be changed to following when user checks different theme from
    dropdown list:
    <LINK id="stylesheet " href="test2.css " type="text/css" rel="stylesheet " >

    Thanks in advance!!

  • =?Utf-8?B?VGVlbXUgS2Vpc2tp?=

    #2
    RE: (ASP.NET 1.1) how to automatically change attribute within &lt;LINK&gt;

    Hi,

    add runat="server" to it (you probably need to add closing tag then too) and
    access it with server-side ID (server-side code) OR place a server-side
    literal control on the <HEADand set its value (<LINK...>)dire ctly from
    server-side code
    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU


    "ppioter" wrote:
    hi
    >
    this regards asp.net 1.1
    I have following problem I would like to change attribute of <LINKtag via
    ASP
    >
    I have this definition inside <HEADsection of my aspx file
    <LINK id="stylesheet " href="test1.css " type="text/css" rel="stylesheet " >
    >
    I want it to be changed to following when user checks different theme from
    dropdown list:
    <LINK id="stylesheet " href="test2.css " type="text/css" rel="stylesheet " >
    >
    Thanks in advance!!
    >
    >

    Comment

    Working...