Access to the <script> tag from codebehind

I tried to access the <script type = 'text / javascript' ....> </script> existing in the Head tag.

What did I do for this

    foreach (Control ctrl in Header.Controls)
    {          
            Response.Write(ctrl.GetType() + "<br/>");
    }

This gives me a link to "title", "meta" and "literal". How can I get the control and get the "src" attribute of this tag.

+3
source share
1 answer

Does it have a tag <script> runat="server"?

+3
source

Source: https://habr.com/ru/post/1748805/


All Articles