By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,023 Members | 1,235 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,023 IT Pros & Developers. It's quick & easy.

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

P: n/a
brw
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <br********@yahoo.com> wrote in message
news:57**************************@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

Nov 17 '05 #2

P: n/a
brw
I'm trying to add the link tag within the <head> block of the page.
It's not clear to me how I can use Response.Write for this.
Similarly, I haven't found a way to add a control to the page's <head>
block dynamically from the code-behind page.

thanks,
Ben

"Jerry III" <je******@hotmail.com> wrote in message news:<es**************@TK2MSFTNGP10.phx.gbl>...
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" <br********@yahoo.com> wrote in message
news:57**************************@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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.