Asp.Net: Why not a App_MasterPages folder?

With the asp.net 2.0 a new set of application folder appeared. You now have a folder for your database (app_data), a folder for your themes (app_theme) and even a folder for your code (app_code).

But what about the Master Pages? Aren't they so important as the Themes? Why isn't there an App_MasterPages folder?

A master page is part of our web development and a folder for them would help in the organization. And like the app_data as the |DataDirectory|, a keyword could be made available in the web.config.

I've opened a suggestion in the  Connect site, so if like me you think this is a good idea, please vote.

What do you think?

kick it on DotNetKicks.com

Related posts

Comments

February 1. 2008 02:04 PM

Duckie

Well, why don't you create the folder?

Imho, the app_data and the app_theme folders are absolutely unnecessary.

Duckie

February 1. 2008 02:21 PM

Mark Wisecarver

Wouldn't the mater page pool directive "~" be a problem?

Mark Wisecarver

February 1. 2008 03:05 PM

brunofig

@Duckie: They exist for a reason. It's a good way of organizing you files. You don't just create files without organizing them within folders, right? The app_theme also bring a extra functionality since you, has a developer, don't need to bother yourself with problem of typing the correct path to include your css, for instance.
I create the App_MasterPages folder in all my web solutions but, it would be nice to have this as a VS.Net feature.

@Mark: I can't see how the usage of the "~" would be a problem... it's just another "folder".

brunofig

February 1. 2008 10:43 PM

Edward J. Stembler

I think they've played with the idea internally. A few months back, last year, I remember seeing a screen–shot of an internal project that had a folder for master pages. It was from ScottGu or someone similar. My guess is that it may have been an earlier version of the MVC framework...

Edward J. Stembler

February 2. 2008 04:21 PM

Cyril Gupta

Hello,

In my new projects I've got different master pages for each sub-directory, and it's easier working with them in the sub-directory cause they've got all their child pages in the same folder, and it seems more organized.

Well, if you want to create a master pages folder for your own projects, you can very well go ahead and do it :)

Cyril Gupta

May 14. 2008 02:23 PM

Andre

I think masterpages offer less flexibility than classes or themes - so that could be reason.

Andre

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Preview

July 25. 2008 09:06 PM

About Me

I'm a Senior Consultant in the work, and a geek outside of it :P

Recent posts

Recent comments