开发者

Access <script> tag from codebehind

I was trying to access < script type='text/javascript' ....>< / script > 开发者_C百科 existing within Head tag.

What I was doing to achieve that,

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

It gives me the reference of "title", "meta" and "literal" control. How can I get the control and get the "src" attribute of that tag.


Does your <script> tag have runat="server"?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜