This is a migrated thread and some comments may be shown as answers.

False unknown method

1 Answer 53 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shawn Clabough
Top achievements
Rank 1
Shawn Clabough asked on 24 Mar 2012, 08:45 PM
I use the following to set the class of my body tag in the aspx file.

<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.

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 29 Mar 2012, 07:41 AM
Hello,

Thank you for your feedback. I reviewed it and was able to reproduce your issue.
We are going to do our best to fix it as soon as possible.
I added a PITS item for it so you can follow its progress.
I also added 600 Telerik Points to your account.
You can use "CodeBehind" instead of "CodeFile" as a temporary workaround or ignore the error that JustCode is showing.
Thank you for your help!

Regards,
Ivan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Code Analysis
Asked by
Shawn Clabough
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or