How can I tell if a <script> tag with a given src attribute is present on the page in ASP.net?
Posted
by Chris McCall
on Stack Overflow
See other posts from Stack Overflow
or by Chris McCall
Published on 2010-05-11T13:40:44Z
Indexed on
2010/05/11
13:44 UTC
Read the original article
Hit count: 211
asp.net-webforms
|.net-2.0
Like the title says, I'm trying to find out if I need to include a script library that my ASP.net UserControl needs to work. I don't want to include it multiple times per page, but I want my control to be able to be used multiple times on the same page.
How can I, in the codebehind of my control, check to see if a given <script/>
tag is present?
This is .Net 2.0, no LINQ.
© Stack Overflow or respective owner