Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

First of all, I know that modern browsers dont let us to hide address bar while opening a modal dialog but I wonder if there is a workaround to hide the address bar??? Please help this is so urgent...

Thanks to all...
Posted
Updated 25-Jul-12 2:50am
v2
Comments
symeramon 25-Jul-12 9:10am    
here is my scenerio below:

function RepeaterDoldur(sd) {

retval = window.showModalDialog(sd.toString(), "argsVariable", "dialogHeight: 610px; dialogWidth: 750px; dialogTop: 190px; dialogLeft: 220px; edge: Raised; center: Yes; help: No; addressbar:No; resizable: Yes; location:No; directories:No; menubar:No, toolbar:No; status: No");
skm_LockScreen('İşlem iptal ediliyor, lütfen bekleyiniz...');
if (retval != null) {
var rettval = retval.split('|');
document.getElementById('<%= height.ClientID %>').value = rettval[0];
document.getElementById('<%= src.ClientID %>').value = rettval[1];
__doPostBack('<%=UpdatePanel1.UniqueID%>', '');
}
RefreshPage();
}

For some reasons I need to use modal dialog as it is I mean with a returning value... How can I do that with modalpopup extender?

Thank you...

1 solution

 
Share this answer
 
Comments
symeramon 25-Jul-12 9:10am    
here is my scenerio below:

function RepeaterDoldur(sd) {

retval = window.showModalDialog(sd.toString(), "argsVariable", "dialogHeight: 610px; dialogWidth: 750px; dialogTop: 190px; dialogLeft: 220px; edge: Raised; center: Yes; help: No; addressbar:No; resizable: Yes; location:No; directories:No; menubar:No, toolbar:No; status: No");
skm_LockScreen('İşlem iptal ediliyor, lütfen bekleyiniz...');
if (retval != null) {
var rettval = retval.split('|');
document.getElementById('<%= height.ClientID %>').value = rettval[0];
document.getElementById('<%= src.ClientID %>').value = rettval[1];
__doPostBack('<%=UpdatePanel1.UniqueID%>', '');
}
RefreshPage();
}

For some reasons I need to use modal dialog as it is I mean with a returning value... How can I do that with modalpopup extender?

Thank you...
bbirajdar 25-Jul-12 9:46am    
Yes..This can be done with ModalPopup extender. The popup will reside inside a panel on your aspx page. You can move your code to the Panel ..Try the demo I have posted..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900