473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MasterType VirtualPath

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.
Dec 20 '07 #1
2 4744
On Dec 20, 5:08 am, "^MisterJingo^" <misterji...@gmail.comwrote:
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.
Dec 20 '07 #2
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.
Dec 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: George Durzi | last post by:
I have a C# in my web application called BasePage. It inherits from System.Web.UI.Page. I'm using page inheritance in my web app so all my pages have an identical look and feel by inheriting from...
10
by: Umut Tezduyar | last post by:
It seems, it is caching it. The following code is an example for it. How can avoid from this. override void OnLoad (sender and eventargs) { Control control = this.LoadControl (path);...
2
by: ThazKool | last post by:
I tried to derive from HttpConfigurationContext, instantiate it, and much more. I don't want a configuration setting section handler. I just want to know what is the Virtual Path of the current...
5
by: Howard | last post by:
i have a default.master and default.aspx in default.aspx i would like to access a variable in default.master pageTitle public partial class _Default : System.Web.UI.Page { protected void...
2
by: andrea | last post by:
Is there a reason for which using the MasterType directive to use the typed struct of a master page conflict with the @Page Theme directive? Thanks Andrea
0
by: =?Utf-8?B?TWlja2VfUw==?= | last post by:
I've a problem that I hope somebody can solve. Windows server 2003 sp2 ASP.NET 2.0 When browsing to the root of the application I get this error *** Object reference not set to an instance of an...
1
by: Andy B | last post by:
I have the following directive in my master page (the actual file name is Layout.master): <%@ MasterType VirtualPath="MasterPage.master" %> When I run the website, I get this error: "Parser Error...
7
by: AAaron123 | last post by:
Me.FindControl("MissionScheduleID"), below returns null. Do you know what I'm doing wrong? Thanks ***In my .aspx file I have: asp:Content ID="Content3"...
10
by: Ty | last post by:
Hello all, I have built a site in VS 2008. using IIS7. Site works fine. So I publish to a local folder. I then go into IIS7 and add a virtural directory pointing to the compiled folder and make it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.