ASP.Net Master Page and File path issues

后端 未结 10 1508
余生分开走
余生分开走 2020-11-28 02:33

I\'m trying to add a script reference to jQuery in my master page so that it will work for any page. It currently looks like this



        
10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 02:45

    You could use a ScriptManager:

    
        
            
        
    
    

    EDIT: If you absolutely need this in your section, you could do something like:

    
        
    
    

    EDIT 2: According to the comments, if you are observing that

    The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

    you may need to change the above to use the data-binding syntax:

    
        
    
    

提交回复
热议问题