This question is locked. New answers and comments are not allowed.
I use the following to set the class of my body tag in the aspx file.
In my .cs file, I have
JC is telling me that the reference in the aspx is an unknown method.
note: as I was entering this, I thought to change my cs reference from codefile= to codebehind= and the warning went away. Either should be valid.
<body class="<%=GetBgClass()%>">
In my .cs file, I have
public string GetBgClass() { ... }
JC is telling me that the reference in the aspx is an unknown method.
note: as I was entering this, I thought to change my cs reference from codefile= to codebehind= and the warning went away. Either should be valid.