Coding global.asax eventhandlers

  • Thread starter Thread starter Timo
  • Start date Start date
T

Timo

I haven't tried coding eventhandlers in Global.asax yet -- any "gotchas" I
should be aware of? Do programming errors there require bouncing IIS? Will
handlers in Global.asax be able to access custom name/value pairs
established in web.config (e.g. <add key="foo" value="bar" /> ) using
ConfigurationSettings.AppSettings("foo") syntax?
Thanks
Timo
 
I haven't tried coding eventhandlers in Global.asax yet -- any "gotchas" I
should be aware of?

Don't try to access Request or Response, or anything else in HttpContext.

Do programming errors there require bouncing IIS?

I've never bounced IIS before. So I wouldn't know.
Will
handlers in Global.asax be able to access custom name/value pairs
established in web.config (e.g. <add key="foo" value="bar" /> ) using
ConfigurationSettings.AppSettings("foo") syntax?

Yes.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
 
Back
Top