I am having a problem closing a popup window opened modally. When I
try to close the window (when the user hits save button and the data
has been processed), the Popup window opens as a full screen as a new
window. The original window plus the Modally opened Pop remain in a
separate window.
What I want to do is close the popup and return to the original window
with its view state maintained.
The control use to fire the popup window and the one to save the
changes need to be a web server control.
The popup window needs to be modal.
*************** *************** *************** *************** ***************
The code I am using open the window with this control is:
private void butChangeOrder_ Click(object sender, System.EventArg s e)
{
if (!IsClientScrip tBlockRegistere d("OpenPopup" ))
{
RegisterClientS criptBlock("Ope nPopup", "<script
language=\"java script\">window .showModalDialo g('PopUpSortOrd er.aspx',null,' font-size:10px;dialo gWidth:43em;dia logHeight:40em,
toolbar=0,locat ion=0,directori es=0,status=no, menuBar=1,scrol lBars=no,resiza ble=no')</script>");
}
}
*************** *************** *************** *************** ***************
The code that I am using to close the Popup window is:
private void butSaveOrder_Cl ick(object sender, System.EventArg s e)
{
DataSavings dtSave = new CMSDataViewer.U tilities.DataSa vings ();
dtSave.SaveSort Orders(false,Hi ddenIds );
if( !Page.IsClientS criptBlockRegis tered ("ClosePopUp "))
{
RegisterClientS criptBlock("Clo sePopUp", "<script
language=\"java script\">functi on
CloseMe(){windo w.close();windo w.history.back( ); };</script>");
}
butSaveOrder.At tributes.Add("o nclick", "ClosePopUp()") ;
}
*************** *************** *************** *************** ***************
Hopefully someone has a solution in this regard.
Cheers.
GrantS
try to close the window (when the user hits save button and the data
has been processed), the Popup window opens as a full screen as a new
window. The original window plus the Modally opened Pop remain in a
separate window.
What I want to do is close the popup and return to the original window
with its view state maintained.
The control use to fire the popup window and the one to save the
changes need to be a web server control.
The popup window needs to be modal.
*************** *************** *************** *************** ***************
The code I am using open the window with this control is:
private void butChangeOrder_ Click(object sender, System.EventArg s e)
{
if (!IsClientScrip tBlockRegistere d("OpenPopup" ))
{
RegisterClientS criptBlock("Ope nPopup", "<script
language=\"java script\">window .showModalDialo g('PopUpSortOrd er.aspx',null,' font-size:10px;dialo gWidth:43em;dia logHeight:40em,
toolbar=0,locat ion=0,directori es=0,status=no, menuBar=1,scrol lBars=no,resiza ble=no')</script>");
}
}
*************** *************** *************** *************** ***************
The code that I am using to close the Popup window is:
private void butSaveOrder_Cl ick(object sender, System.EventArg s e)
{
DataSavings dtSave = new CMSDataViewer.U tilities.DataSa vings ();
dtSave.SaveSort Orders(false,Hi ddenIds );
if( !Page.IsClientS criptBlockRegis tered ("ClosePopUp "))
{
RegisterClientS criptBlock("Clo sePopUp", "<script
language=\"java script\">functi on
CloseMe(){windo w.close();windo w.history.back( ); };</script>");
}
butSaveOrder.At tributes.Add("o nclick", "ClosePopUp()") ;
}
*************** *************** *************** *************** ***************
Hopefully someone has a solution in this regard.
Cheers.
GrantS
Comment