Coding global.asax eventhandlers

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
 
K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top