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
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='-
I make it simple like below and my page was working like a charm.
<SharePoint:ScriptBlock ID="ScriptBlock2" runat="server" ></SharePoint:ScriptBlock>
Recently I was working on sending mail using smtp server where I stuck on below error: IIS/SMTP - emails are stuck in mailroot/Queue ...
If you want to know which controlled fired post back at page load, here is some sample code. 1) for link button: string ctrlname = Page....