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

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
 
J

Jerry III

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
 
B

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top