Project
ReSharper
Priority
Show-stopper
Type
Bug
Fix versions
2.0.1
State
Duplicate
Assignee
Sergey Coox
Subsystem
ASP.NET
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   James Hebben
    5 years ago (06 Aug 2006 16:07)
  • Updated by   James Hebben
    5 years ago (09 Sep 2006 13:33)
  • Jira: RSRP-23909
    (history, comments)
 
RSRP-23909 Incorrect error highlighting in asp when using CodeFileBaseClass
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I am using a custom page base class (*BasePage*), derived from System.Web.UI.Page.

The class has some public properties which should be accessible from the .aspx @Page directive once I have added the CodeFileBaseClass attribute to set the base class to BasePage.

R# marks up the all (valid) BasePage public property references in the @Page directive as errors.

E.G. BasePage has a public string property called Foo. I should be able to do the following:
<%@ Page 
    Language="C#" 
    AutoEventWireup="true" 
    CodeFile="Default.aspx.cs" 
    Inherits="_Default" 
    CodeFileBaseClass="BasePage" 
    Foo="baz" %>


R# incorrectly marks the Foo attribute as invalid.

See attached solution for full example.

Issue was closed
Comments (2)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Sergey Coox
  Sergey Coox
09 Aug 2006 12:07
5 years ago
Re: #23909- Incorrect error highlighting in asp when using CodeFileBaseClass
It is a VS, who highlights Foo as unresolved. R# highlights the file as valid, for we do not support custom page attributes.

You may covert the request to a feature request to support them, though.
James Hebben
  James Hebben
09 Aug 2006 12:07
5 years ago
Re: #23909- Incorrect error highlighting in asp when using CodeFileBaseClass
I have added this as a request here:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=24711