how to add ScriptEditorWebPart to PageLayout
the simple secret is that the ID of the webpart MUST be a guid, example
<WebPartPages:ScriptEditorWebPart
runat="server"
Content="<script>alert('hi');</script>"
ID="g_9db1223f_1234_44df_ad5d_e6454520ddfa" >
</WebPartPages:ScriptEditorWebPart>
<WebPartPages:ScriptEditorWebPart
runat="server"
Content="<script>alert('hi');</script>"
ID="g_9db1223f_1234_44df_ad5d_e6454520ddfa" >
</WebPartPages:ScriptEditorWebPart>
Comments
Post a Comment