Friday 14 March 2014

SharePoint 2013 add Edit new webpart page

SharePoint 2013 add new webpart page
Add New page
Try to edit the page..
Message: this page cannot be edited in sharepoint designer. you can edit the content in the browser
To solve above messgae..
Click on pages.Right Click on page which you want to edit.
Select : Detach from page layout
Now add some javascript: You should add javascript in :PlaceHolderMain only
Add javascript inside: <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
<script type="text/javascript">
alert('hi');
$(document).ready(function() {
var k="str";
alert(k);
});
</script>