Show Modal Dialog in IE 5




I have a web application which has a page. From that page I need to show a
modal dialog to capture some information. The page displayed in the modal
window has Ok and Cancel buttons, clicking on which updates some information
and the window is closed.
However, showModalDialog doesnt seem to work properly with IE 5.0. On click
of Ok, a new browser window is displayed. I have tried putting
<base target="self">
but this seems to work only with IE 6.

I then tried creating a dummy .htm page which has an iFrame whose source is
the .aspx page I am displaying in the modal dialog.
This worked fine in IE 5.0 just the first time round. Subsequently,
postbacks always cause a new browser window to be opened.

Code in the Test.htm file is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
<body MS_POSITIONING="GridLayout">
<iframe id="myFrame" src= myPage.aspx" height=100% width=100%

Can anyone help me out here?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question