Wednesday, June 07, 2006

K. Scott Allen: Build Failed With No Errors

Itt van a teljes cikk.

Temak:

MSBuild maximum verbosity

Client Report Definition (rdcl) files

ReportViewer control;

Tuesday, June 06, 2006

Milan Negovan: Session_Start or Session_OnStart (event handlers in global.asax)

itt van a teljes cikk.

What if you define the following methods in global.asax (yes, all of them):

  • void Session_Start(object sender, EventArgs e)
  • void Session_Start()
  • void Session_OnStart(object sender, EventArgs e)
  • void Session_OnStart()
  • void Session_Start(object sender)

Having these five event handlers, which one(s) will be called?

It turns out all of them, except the last one, will be called, and in the same order as listed!

Karl Seguin: HttpHandlers – Learn Them. Use Them.

Itt van a teljes cikk.

Why use a handler?
First and foremost, HttpHandlers are far more reusable/portable than pages.
Secondly, the Page handler is relatively expensive… if you do that in a page you’ll end up raising a number of events (onInit, onLoad, onPreRender, onUnload, …) and make use of a number of ASP.NET features such as viewstate and postback. In most cases, the performance hit is negligible, but it nonetheless highlights that you’re using the page framework when you have no need to.

Why not to use HttpHandlers?
The biggest and very significant drawback of HttpHandlers is that they can only be used for extensions that are mapped to ASP.NET in IIS.