I was creating a materpage when I got following error on publishing my masterpage:
CS0030: Cannot convert type "Microsoft.SharePoint.Webcontrols.Scriptblock" to "System.Web.UI.IAttributeAccessor".
The solution of this error was hidden in warning of debug.When I check the content of my masterpage I found some extra properties added to ScriptBlock tag. My tag looked like below:
<SharePoint:ScriptBlock runat="server" __designer:Preview="<script
type="text/javascript">// <![CDATA[
var g_Workspace = "s4-workspace"; // ]]>
</script>" __designer:Values="<P N='ID' T='ctl09' /><P
N='Page' ID='1' /><P N='TemplateControl'
ID='2' /><P N='AppRelativeTemplateSourceDirectory' R='-
1' />"></SharePoint:ScriptBlock>
I make it simple like below and my page was working like a charm.
<SharePoint:ScriptBlock ID="ScriptBlock2" runat="server" ></SharePoint:ScriptBlock>
Subscribe to:
Post Comments (Atom)
What is the Use of X and Y Properties in Power Apps SharePoint List Form?
If you've spent any time customizing SharePoint List Forms using Power Apps, you've likely come across the X and Y properties ...
-
In last blog we learn how can we enable footer on SharePoint Online Modern Communication site. If you have not gone through that you can use...
-
Code Review :- General 1. Remove the commented code 2. Variable name should not be contain "_". 3. Query should be in separat...
-
Issue : Recently, we had a requirement to sync the calendar between shared mailbox outlook and SharePoint Calendar list. We have created 2 f...

No comments:
Post a Comment