Hi!

I have added a user control to a master page that contains only JavaScript only, neither HTML nor server side code.

When I opened the page I got the following error:

http://server/_catalogs/masterpage/Master.master(26):
error CS0030: Cannot convert type 'Microsoft.SharePoint.WebControls.CssRegistration' to 'System.Web.UI.IAttributeAccessor'

Please suggest.

If the user control is simply javascript why can't you simply link to it as an external .js file? That will remove the error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.