If you pop a window up using Window.showModalDialog in JS then you cannot add code behind button clicks....

What happens it when the forms posts back to the server to do stuff it reopens a new instance of the form, and doesn't use the same one. So you end up with a modal instance of Login.aspx, and a normal, non modal, Login.aspx.

This is very strange, and a really kick in the teeth. Anyone got any ways of fixing this?

Would remoting be the only way?

Woka