MasterPage Properties

Hi Team,

I got a ASP.NET masterpage with a property x.

In my codebehind I refer to the masterpage this way so I get a stronyl type
masterpage object :

<%@ MasterType VirtualPath="~/MasterPage.master" %>

The RC of R#3 does not recognize x as a valid propery :

Master.x

Should this scenario be supported?

The same problem exists with dynamicly loaded user controls where you referer
to the type at the top of the page like this :

<%@ Reference Control="~/Controls/ControlName.ascx" %>

Properties/Methods of the control are shown as error by R#

If I'm not making sense or you need a sample to reproduce just ask

Kind Regards, Tom Pester


2 comments
Comment actions Permalink

Tom,

The second scenario is not supported yet (frankly speaking, we have
overlooked it, but fix it in a bugfix update for sure). Speaking about the
first case, I almost sure, that the problem with is exactly as with the
second one, I'll check it ASAP.

If you create a sample, it would be terrific :)
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Tom Pester" <omegafantaDODELETETTHIS@telenet.be> wrote in message
news:86572545359218c980c464e3dfca@news.jetbrains.com...

Hi Team,

>

I got a ASP.NET masterpage with a property x.

>

In my codebehind I refer to the masterpage this way so I get a stronyl
type masterpage object :

>

<%@ MasterType VirtualPath="~/MasterPage.master" %>

>

The RC of R#3 does not recognize x as a valid propery :

>

Master.x

>

Should this scenario be supported?

>

The same problem exists with dynamicly loaded user controls where you
referer to the type at the top of the page like this :

>

<%@ Reference Control="~/Controls/ControlName.ascx" %>

>

Properties/Methods of the control are shown as error by R#

>

If I'm not making sense or you need a sample to reproduce just ask

>

Kind Regards, Tom Pester

>



0

Please sign in to leave a comment.