Sponsored Ad

Tuesday, March 23, 2010

Modal Dialog Window Opens a New window on every Button Click – JavaScript Problem

When you use java script method it opens a new window, whenever you click on any server side button.

 

Modal window code:

var Result = window.showModalDialog("popup.aspx","Popup","");

To fix this problem you need to add a code block into the popup.aspx head section.

 

you need to write a code script:

<base target="_self" />

 

<head runat="server" >
<base target="_self" />
    <title></title>
</head>

0 comments:

Post a Comment

Sponsored Ad

Website Update

Followers