Luke
Luke

Reputation: 23700

@Master declaration giving syntax error

I've got a master page and I'm trying to declare that it is written in C#.

However when I enter this to the top of the Design.master file it gives "Syntax error".

<%@ Master Language="C#" %>

What I don't understand is that Visual Studio is writing the code for me pretty much...

What could be causing this?

enter image description here

Upvotes: 2

Views: 810

Answers (1)

Luke
Luke

Reputation: 23700

I closed the tab and reopened it and the syntax was then validated successfully.

Grrr!

Upvotes: 3

Related Questions