dynamically adding a <LINK> tag to an asp.net page

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default dynamically adding a <LINK> tag to an asp.net page

    Is there a way to dynamically add a link tag to the head block of an
    ..aspx page? I'm aware that you can add a link tag (or literal
    control) statically and then dynamically modify the attributes.

    I'm wondering if there's a way to add the tag from scratch at run
    time.

    thanks,
    Ben
    brw Guest

  2. Similar Questions and Discussions

    1. Dynamically adding DSN?
      I need to add DSN's to CF server on the fly when a user signs up for my billing software. I've searched around google and can't find anything that...
    2. Dynamically adding a user control to aspx page
      I am using an aspx page called USProfile.aspx. It has a placeholder control. A user control called USData is added to placeholder control...
    3. Adding dynamically user control (ASCX) into asp.net page and handling OnClick event
      Hi, I've been reading a lot's of Q&A on user controls but none seem to answer my question. Here it is. I need to add dynamically a user control,...
    4. Dynamically adding controls to page SOURCE file
      Hi, I have a class, derived from "Control" which I can include on a page using: <tag:MyControl attr1=value></tag:MyControl> My questions are:...
    5. Dynamically adding custom controls to page source file
      Hi, I have a class, derived from "Control" which I can include on a page using: <tag:MyControl attr1=value></tag:MyControl> My questions are:...
  3. #2

    Default Re: dynamically adding a <LINK> tag to an asp.net page

    Response.Write is what you need. Or you can use repeater control, it won't
    render anything if it's empty and will allow you to insert more than one
    link.

    Jerry

    "brw" <brw_nospam@yahoo.com> wrote in message
    news:574d09b5.0308110934.1ed66c18@posting.google.c om...
    > Is there a way to dynamically add a link tag to the head block of an
    > .aspx page? I'm aware that you can add a link tag (or literal
    > control) statically and then dynamically modify the attributes.
    >
    > I'm wondering if there's a way to add the tag from scratch at run
    > time.
    >
    > thanks,
    > Ben

    Jerry III Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139