ModalForms is a project mainly written in JavaScript, it's free.
Example of creating modal forms with ASP.NET MVC and jQuery