How to use JQuery with Master Pages?

后端 未结 13 1177
甜味超标
甜味超标 2020-12-04 18:13

I can get simple examples to work fine as long as there\'s no master page involved. All I want to do is click a button and have it say \"hello world\" with the javascript in

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 18:40

    If your site has content pages in other folders, using the Page's ResolveUrl method in the src path will ensure that your js file can always be found:

    
    

提交回复
热议问题