webform in a modal dialogbox

wessamzeidan

Junior Contributor
Joined
Dec 8, 2002
Messages
379
Location
Lebanon
hi, I'm using javascript to open a webform in a modal dialog box, heres the code I use to open it

var winArgs = new Array(str1,"");

var winSettings = 'center:yes;resizable:no;help:no;status:no;dialogWidth:500px;dialogHeight:200px';

// return the dialog control values after passing them as a parameter
winArgs = window.showModalDialog('addaddressranges.aspx', winArgs, winSettings);


in this webform, I have a button that does a postback to the server, everything is working fine. The problem is, after the post back, a new window opens containing the webform shown in the modal dialogbox. How can I stop that??
 
Back
Top