I'm playing around with inline code blocks in asp.net. Can somebody tell me why the following code doesn't work?
<%@ Language="C#" %>
<%
Response.Write(TestClass.ShowMessage());
public class TestClass
{
public static string ShowMessage()
{
return "This worked!!";
}
}
%>
I get the following error message: CS1513: } expected