Sometimes you need to modally display an ASP.NET page, that is, you can't allow you to click on other pages before you close this page, just like a dialog in a lot of Windows programs. This effect can be implemented using DHTML's WindowModalDialog method, as follows: