eh Dom, focus on the class you're teaching right now
cheers Allan
On Thu, 1 Jun 2006 15:44:16 +0200, Dominick Baier
<dmlists LEASTPRIVILEGE.COM> wrote:
>that's the normal behavior - just as with pages...
>
>
>
>
>cheers,
>dominick
>
>-----------------------------
>Dominick Baier, DevelopMentor
>http://www.leastprivile
ge.com
>
>
>-----Original Message-----
>From: Discussion of building .NET applications targeted
for the Web
>[mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Clark Evans
>Sent: Donnerstag, 1. Juni 2006 16:28
>To: DOTNET-WEB DISCUSS.DEVELOP.COM
>Subject: Re: [DOTNET-WEB] global.asax and inline code
>
>Unless I'm doing something terribly wrong, you can
still put your
>Global.asax code into a codebehind file. The only
difference is the
>codebehind lives in App_Code, not in the root with
Global.asax. Also, it
>seems that the name of the class in App_Code can be
anything you want (it
>doesn't have to be Global.asax.cs like it was in .NET
1.x), and it can even
>be namespace-qualified if you want.
>
>Global.asax:
><% Application
Inherits"MyNameSpace.Global.cs"
Language="C#" %>
>
>App_Code/Global.cs:
>namespace MyNameSpace
>{
> public class Global : System.Web.HttpApplication
> {
> protected void Application_Error(Object sender,
EventArgs e)
> {
> ...
> }
>
> ...
> }
>}
>
>(warning, Gmail compiled, but based off memory of what
an existing
>application is doing)
>
>Clark
>
>
>On 5/31/06, Shawn Wildermuth <swildermuth_lists adoguy.com> wrote:
>>
>> 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(r) 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
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|