Ok this seems like an easy one:
In c# asp.net mvc I can declare some public class like:
public class Foo {
public static string Bar {get
{return "bar";}
}
}
and access it from any html like:
<%=Foo.Bar;%>
right?
Well, I have to do the same in ASP.NET MVC VB.Net but I cannot access any variable or method:
public class Foo
public Shared ReadOnly Bar as string
Get
return "Bar"
end Get
End Property
End Class
trying to do <%=Foo.Bar;%> does not work in vb.net I get Name 'Foo' is not declared.
What am I missing here?