Our product, Elevate Web Builder, provides this type of functionality:
http://www.elevatesoft.com/products?category=ewb&type=web
For example, coding a button event handler is just like it is in Visual Studio/Delphi - just double-click on the button in the form designer and you're in the code editor positioned inside of an empty event handler code block.