False unknown method

2 posts, 0 answers
  1. Shawn Clabough
    Shawn Clabough avatar
    17 posts
    Member since:
    Jun 2004

    Posted 24 Mar 2012 Link to this post

    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.
  2. Ivan
    Admin
    Ivan avatar
    106 posts

    Posted 29 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top