473,387 Members | 1,517 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.

MaterType

When I want to reference my master page I use the following:
<%@ MasterType virtualPath="~/Layout.master"%>

Is there anyway I make this global within my project for all content
pages? (in the web config or such)

Regards
Aug 17 '07 #1
2 1435
Hi,

if you'd use Web Application project model in VS2005, you wouldn't have this
issue basically because compilation happens beforehand and all types are
known and available at that time. No need for separate directives etc.

Compilation and Deployment in ASP.NEt 2.0
http://www.code-magazine.com/Article...uickid=0609061

I'm not aware that MasterType could be set globally.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"Mick Walker" <mi*********@privacy.netwrote in message
news:5i*************@mid.individual.net...
When I want to reference my master page I use the following:
<%@ MasterType virtualPath="~/Layout.master"%>

Is there anyway I make this global within my project for all content
pages? (in the web config or such)

Regards

Aug 18 '07 #2
Teemu Keiski wrote:
Hi,

if you'd use Web Application project model in VS2005, you wouldn't have this
issue basically because compilation happens beforehand and all types are
known and available at that time. No need for separate directives etc.

Compilation and Deployment in ASP.NEt 2.0
http://www.code-magazine.com/Article...uickid=0609061

I'm not aware that MasterType could be set globally.
I have looked at the web application Programming model, but I was
confused at the inability to add an App_Code directory to the project.
I think I need to look into it a little more.

Aug 19 '07 #3

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

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.