How to add JavaScript in the content page that inherits from Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage
How to add JavaScript in the content page that inherits from Inherits="Microsoft.SharePoint.Publishing.PublishingLayoutPage"?
I also need to pass the client IDs of the dropd开发者_运维知识库ownlists present on the content in the JavaScript function.
There are several ways to accomplish that
- Master Page. Use the ResolveClientUrl so that your content pages will also be able to resolve the JavaScript location.
- Content Editor webpart Sample article
- SharePoint (MOSS) Pages: Embedding JavaScript
精彩评论