How can I use runat=“server” on a script tag in asp.Net

后端 未结 5 1079
生来不讨喜
生来不讨喜 2021-02-19 04:00

I don\'t necessarily need to run it at server, however, I would like to use the ~/js/somefile.js syntax.

Previously, I had just set everything with Absolute

5条回答
  •  独厮守ぢ
    2021-02-19 04:16

    What I've always done is use a normal script tag and put the src in <% %> tags, as illustrated here:

    
    

提交回复
热议问题