From Dwin1, I have to call another Dialog Window "Dwin2".if user close the Dialog Window "Dwin2", i have to refersh the Dwin1. If user close Dwin1, i have to refresh the Parent Window.
For opening a Dwin1 , should not be a problem.but if i open the another dialog Dwin2 from Dwin1, it's opening like a seperate window Dwin1 . From there it's opening the Dialog
Open Dwin1
Expand|Select|Wrap|Line Numbers
- string PopUpWindowPage = "Dwin1.aspx?Query=NEW&VehicleId=" + vehicleId ;
- string Script = "";
- Script += "\n<script language=JavaScript id='ParentWindow'>\n";
- Script += "var confirmWin = null; \n";
- Script += "var winSettings = 'dialogWidth:960px; dialogHeight:700px; left:69; top:20; resizable:no; scroll:no; help:no; toolbar:no; edge:raised; menubar:no; status:no; center:yes; unadorned: yes';";
- Script += "window.showModalDialog(' " + PopUpWindowPage + "',self,winSettings); \n";
- Script += "</script>";
- //Check wether they are already registered
- if (!this.IsClientScriptBlockRegistered("ParentWindow"))
- {
- //Register the script
- this.RegisterClientScriptBlock("ParentWindow", Script);
- }
Expand|Select|Wrap|Line Numbers
- string PopUpWindowPage = "Veh.aspx";
- string Script = "";
- Script += "\n<script language=JavaScript id='LicenseSelectionPopupWindow'>\n";
- Script += "var winSettings = 'dialogWidth:655px; dialogHeight:435px; left:80; top:40; resizable:no; scroll:no; help:no; toolbar:no; edge:raised; menubar:no; status:no; center:yes; unadorned: yes';";
- Script += "window.showModalDialog(' " + PopUpWindowPage + "',self,winSettings); \n";
- Script += "</script>";
- if (!this.IsClientScriptBlockRegistered("LicenseSelectionPopupWindow"))
- {
- //Register the script
- this.RegisterClientScriptBlock("LicenseSelectionPopupWindow", Script);
- }