Can we have a plain-vanilla global.asax file like the one in a Web Site project?
The current "Global Application Class" item consists of global.asax and global.asax.cs files. Since I'm unable to open the global.asax file in the Solution Explorer, I see no use for it.
I tested the WebSite-style global.asax in an MVC project, and it seems to work.
I'd keep the double-file global.asax for purists who may wish to have the Application directive in one file and actual code in the .cs file.
I suppose that just having 1 class file would be better, but it doesn't really hurt to have an asax file with one directive does it? I'd rather have this than have the code directly in script tags like in the web site model, particularly because the parser
has to do 2 things, parse HTML/ASPX tags and parse the script code.
Ever notice that delay you get before some things are highlighted when using server-side script tags?
foobar123
Member
8 Points
11 Posts
global.asax suggestion
Dec 14, 2007 04:14 PM|LINK
The current "Global Application Class" item consists of global.asax and global.asax.cs files. Since I'm unable to open the global.asax file in the Solution Explorer, I see no use for it.
I tested the WebSite-style global.asax in an MVC project, and it seems to work.
I'd keep the double-file global.asax for purists who may wish to have the Application directive in one file and actual code in the .cs file.
subdigital
Contributor
2105 Points
445 Posts
ASPInsiders
Re: global.asax suggestion
Dec 17, 2007 02:43 PM|LINK
Seriously what's the point of this?
I suppose that just having 1 class file would be better, but it doesn't really hurt to have an asax file with one directive does it? I'd rather have this than have the code directly in script tags like in the web site model, particularly because the parser has to do 2 things, parse HTML/ASPX tags and parse the script code.
Ever notice that delay you get before some things are highlighted when using server-side script tags?
http://www.flux88.com
ASP.NET MVP
Certified ScrumMaster
ASPInsider
MCSD