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:
(1) Place an HTML button in the call page
(2) Join Script at this page
Function OpenDialog ()
{
// Dialog.aspx is a web form that needs to be modally displayed.
Window.ShowModalDialog ("Dialog.aspx");
}
script>