Unherited web pages

Howdy.

All the pages in my site inherit from a base web page (with some common functionality).

So instead of having webpage1:System.Web.Page
I have webpage1:BasePage

where BasePage inherits from System.Web.Page

My site compiles fine.

But resharper goes crazy and tells me most of the page is incorrect.

Any suggestions? (even if the suggestion is just to show me how to switch off checking on these pages).

thanks

Greg.

4 comments
Comment actions Permalink

Hello Greg,

I also inject a standard class between Page and my asp.net pages and I have
no problems.

What is the problem that you are experiencing?

I am currently using the new web application project model - included in
the VS2005 SP1 - but I have also been using the original project model and
I do not remember any problems. However, you might try out the new project
model and see whether or not this helps.

A little trick with ASP.NET pages and R#. When you open the web project always
close all documents in the beginning. R# cannot provide proper hightlighting
if the document is opened to begin with.

Cheers
Thomas

Howdy.

All the pages in my site inherit from a base web page (with some
common functionality).

So instead of having webpage1:System.Web.Page
I have webpage1:BasePage
where BasePage inherits from System.Web.Page

My site compiles fine.

But resharper goes crazy and tells me most of the page is incorrect.

Any suggestions? (even if the suggestion is just to show me how to
switch off checking on these pages).

thanks

Greg.



0
Comment actions Permalink

Greg,

Is your problem similar to the one described in
http://www.jetbrains.net/jira/browse/RSRP-26778 ?
In the case, there is a problem we have not solved yet. If your issue is
different, a small sample containing BasePage and a webpage with errors will
help us a lot. Thanks in advance.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Hi Sergey

The inheritedd page is not from another assembly. I will provide a zipped version of my assembly as soon as i get back to my pc.

thanks,

Greg.

0
Comment actions Permalink

Hi, I solved the problem.

I had a copy of the cs files in a App_Data a portion of a web project that is not normally compiled by Vis Studio (hence it compiled fine but resharper went crazy). I deleted this and the problem went away.

thanks and sorry for the trouble.

Greg.

0

Please sign in to leave a comment.