|
List Info
Thread: global.asax and inline code
|
|
| global.asax and inline code |

|
2006-06-01 02:09:01 |
Maybe I don't entirely understand HttpModules, but it does
not appear to
be a replacement to global.asax, in particular to the
Application_Start,
Session_Start, Session_End and Application_End functions.
In addition, if global.asax is such a bad idea, why
encourage the ASP
developers to use it?
Scott Allen wrote:
> My theory is that developers are better off with an
HttpModule, as
> global.asax has a tendency to become a big ball of mud.
Developers still
> writing / porting ASP script are looking for the
equivalent of global.asa.
> Just say no to global.asax.
>
> --
> Scott
> http://www.OdeT
oCode.com/blogs/scott/
>
>
>> -----Original Message-----
>> From: Discussion of building .NET applications
targeted for the Web
>> [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Shawn Wildermuth
>> Sent: Wednesday, May 31, 2006 9:16 PM
>> To: DOTNET-WEB DISCUSS.DEVELOP.COM
>> Subject: [DOTNET-WEB] global.asax and inline code
>>
>> I searched to see if anyone had a good answer for
this, but can anyone
>> tell
>> me why global.asax is now implemented as inline
script instead of a
>> code-behind file?
>>
>>
>> Thanks,
>>
>> Shawn Wildermuth
>> <blocked::http://adoguy.com/> http://adoguy.com
>> C# MVP, MCSD.NET, Author and Speaker
>> <http:/
/profile.mygamercard.net/The+ADO+Guy>
>>
>>
>> ===================================
>> This list is hosted by DevelopMentor. http://www.develop.com
>>
>> View archives and manage your subscription(s) at
>> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentorŪ http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| global.asax and inline code |

|
2006-06-01 04:25:52 |
*throws $0.02 at the list*
modules are for:
1) doing pre- and post-processing in the pipeline when it's
stuff you'd care
to reuse in another app since they're packaged as
assemblies.
global.asax is for:
1) those 4 "magic" methods: App_Start/End,
Session_Start/End
2) doing pre- and post-processing in the pipeline when it's
local to your
app (IOW, stuff you'd not care to reuse in another app)
since it's packaged
as a text file that's demand compiled (unless pre-compile,
of course). As a
side note, the events in global.asax are always fired last
WRT modules (at
least the last time I checked).
-Brock
http://staff.develop.
com/ballen
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for
> the Web [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of David
> Sent: Wednesday, May 31, 2006 10:09 PM
> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] global.asax and inline code
>
> Maybe I don't entirely understand HttpModules, but it
does
> not appear to
> be a replacement to global.asax, in particular to the
> Application_Start,
> Session_Start, Session_End and Application_End
functions.
>
> In addition, if global.asax is such a bad idea, why
encourage the ASP
> developers to use it?
>
> Scott Allen wrote:
> > My theory is that developers are better off with
an HttpModule, as
> > global.asax has a tendency to become a big ball of
mud.
> Developers still
> > writing / porting ASP script are looking for the
equivalent
> of global.asa.
> > Just say no to global.asax.
> >
> > --
> > Scott
> > http://www.OdeT
oCode.com/blogs/scott/
> >
> >
> >> -----Original Message-----
> >> From: Discussion of building .NET applications
targeted for the Web
> >> [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Shawn
> Wildermuth
> >> Sent: Wednesday, May 31, 2006 9:16 PM
> >> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> >> Subject: [DOTNET-WEB] global.asax and inline
code
> >>
> >> I searched to see if anyone had a good answer
for this,
> but can anyone
> >> tell
> >> me why global.asax is now implemented as
inline script instead of a
> >> code-behind file?
> >>
> >>
> >> Thanks,
> >>
> >> Shawn Wildermuth
> >> <blocked::http://adoguy.com/> http://adoguy.com
> >> C# MVP, MCSD.NET, Author and Speaker
> >> <http:/
/profile.mygamercard.net/The+ADO+Guy>
> >>
> >>
> >> ===================================
> >> This list is hosted by DevelopMentor. http://www.develop.com
> >>
> >> View archives and manage your subscription(s)
at
> >> http://discuss.develop.com
> >
> > ===================================
> > This list is hosted by DevelopMentorR http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
| global.asax and inline code |

|
2006-06-01 11:14:19 |
True, David. I admit to having a knee jerk reaction since
finding a
global.asax yesterday where one developer "just added
a wee bit o' logging
functionality" and another developer "just added
a wee bit o' diagnostic
error handling" and another developr ... and another
developer ....
Three months later, it was quite the mess.
--w
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for the Web
> [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of David
> Sent: Wednesday, May 31, 2006 10:09 PM
> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-WEB] global.asax and inline code
>
> Maybe I don't entirely understand HttpModules, but it
does not appear to
> be a replacement to global.asax, in particular to the
Application_Start,
> Session_Start, Session_End and Application_End
functions.
>
> In addition, if global.asax is such a bad idea, why
encourage the ASP
> developers to use it?
>
> Scott Allen wrote:
> > My theory is that developers are better off with
an HttpModule, as
> > global.asax has a tendency to become a big ball of
mud. Developers still
> > writing / porting ASP script are looking for the
equivalent of
> global.asa.
> > Just say no to global.asax.
> >
> > --
> > Scott
> > http://www.OdeT
oCode.com/blogs/scott/
> >
> >
> >> -----Original Message-----
> >> From: Discussion of building .NET applications
targeted for the Web
> >> [mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Shawn Wildermuth
> >> Sent: Wednesday, May 31, 2006 9:16 PM
> >> To: DOTNET-WEB DISCUSS.DEVELOP.COM
> >> Subject: [DOTNET-WEB] global.asax and inline
code
> >>
> >> I searched to see if anyone had a good answer
for this, but can anyone
> >> tell
> >> me why global.asax is now implemented as
inline script instead of a
> >> code-behind file?
> >>
> >>
> >> Thanks,
> >>
> >> Shawn Wildermuth
> >> <blocked::http://adoguy.com/> http://adoguy.com
> >> C# MVP, MCSD.NET, Author and Speaker
> >> <http:/
/profile.mygamercard.net/The+ADO+Guy>
> >>
> >>
> >> ===================================
> >> This list is hosted by DevelopMentor. http://www.develop.com
> >>
> >> View archives and manage your subscription(s)
at
> >> http://discuss.develop.com
> >
> > ===================================
> > This list is hosted by DevelopMentorR http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
|
[1-3]
|
|