Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Distro - solving the RegisterClientScriptBlock problem

Someone at the office passed me this great find. Distro is, essentially, a replacement for RegisterClientScriptBlock() and similar functions in ASP.Net.  Some of the problems it tries to solve are:

  • API requires mixing of .NET and JavaScript code in the code-behind.
  • JavaScript code is compiled into the code-behind, which means constant recompilation during development, debug, and QA.
  • JavaScript in code-behind breaks separation of style and logic - the JavaScript should be in the ASPX or ASCX with the rest of the HTML.
  • No way to control the order in which the scripts execute in.
  • No good way to link a javascript function to the client-side events of an ASP.Net Server Control.

Learn more here...
http://www.youngpup.net/2004/distro

No Comments