My code goes like this..
I have a UserControl page..from this page onclick of hyperlink I call the ShowModalDialog window(I am using your code).
The Modal window loads URL.aspx page.
Onclick of Save button in the URL.aspx page..I am creating an object and sending the values back to Usercontrol page.
In IE..this works fine.
In Chrome, I am unable to retrieve the returned value.
I tried all the way..commenting eval and using JSON.parse in the ShowModalDialog.js file..nothing worked.
In the function ShowDeliveryAddress(), I am calling your code.
function ShowDeliveryAddress(url, sender) {
// var addr = window.showModalDialog(url, "some argument", "dialogWidth:500px;dialogHeight:200px");
// alert(addr + " return value");
}
The "addr", will not have any value and I will not get the alert.
URL.aspx.cs Code:
On click of Save button.
**```
//Prepare javascript to send information back to the calling page
System.Text.StringBuilder script = new System.Text.StringBuilder();
script.Append("var o = new Object();o.delAddress = '");
script.Append(selectedAddressDisplay);
script.Append("';o.fkid='");
script.Append(ddlDeliveryAddress.SelectedItem.Value);
if (string.IsNullOrEmpty(Request.QueryString[UIConstants.QUERYKEY_ADDRESSID]))
{
script.Append("';o.updateAll='Yes';");
}
My code goes like this.. I have a UserControl page..from this page onclick of hyperlink I call the ShowModalDialog window(I am using your code). The Modal window loads URL.aspx page. Onclick of Save button in the URL.aspx page..I am creating an object and sending the values back to Usercontrol page. In IE..this works fine. In Chrome, I am unable to retrieve the returned value. I tried all the way..commenting eval and using JSON.parse in the ShowModalDialog.js file..nothing worked.
UserControl code:
In the function ShowDeliveryAddress(), I am calling your code.
The "addr", will not have any value and I will not get the alert.
URL.aspx.cs Code: On click of Save button.
**```