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

  • Thread starter Thread starter brw
  • Start date Start date
B

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
 
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
 
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
 
Back
Top