MasterType VirtualPath

MasterType VirtualPath

am 20.12.2007 14:08:41 von misterjingo

Hi all,

are there any performance considerations to take into account when
referencing variables in the master page by using "MasterType
VirtualPath"? I'm trying to add a crumb trail to a site, and have
modified the master page to house it. I could use findcontrol, but it
seems like searching for the control would definately hit performance
if done on every page load.

Any views would be helpful,

Thanks.

Re: MasterType VirtualPath

am 20.12.2007 14:21:53 von mskarthimail

On Dec 20, 5:08 am, "^MisterJingo^" wrote:
> Hi all,
>
> are there any performance considerations to take into account when
> referencing variables in the master page by using "MasterType
> VirtualPath"? I'm trying to add a crumb trail to a site, and have
> modified the master page to house it. I could use findcontrol, but it
> seems like searching for the control would definately hit performance
> if done on every page load.
>
> Any views would be helpful,
>
> Thanks.

RE: MasterType VirtualPath

am 20.12.2007 18:54:00 von brucebarker

no. its just overides the pages Master property to have a cast to the proper
type. then you don't have to use a cast to access members.

-- bruce (sqlwork.com)


"^MisterJingo^" wrote:

> Hi all,
>
> are there any performance considerations to take into account when
> referencing variables in the master page by using "MasterType
> VirtualPath"? I'm trying to add a crumb trail to a site, and have
> modified the master page to house it. I could use findcontrol, but it
> seems like searching for the control would definately hit performance
> if done on every page load.
>
> Any views would be helpful,
>
> Thanks.
>