A
Andreas Pfiz
Hello,
I have a problem with passing Data between a "classic ASP-Page (VBScript)"
and a ASP.NET 2.0 Page using showModalDialog / window.returnValue
-------------------------------------------------------------
Here is the Code-Snippet from the "caller" page:
var rValue="oldValue";
rValue = showModalDialog(test.aspx?,'Name','dialogHeight:400px;
dialogWidth:800px;');
alert(rValue);
-----------------------------------------------------------
Here is the Code-Snippet from test.aspx
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TxtPLZ.Attributes.Add("onClick","javascript:window.returnValue='1',window.close();");
}
}
Clicking on the TxtLabel closes the window, but alert(rValue); shows alway
"undefined"
What am I doing wrong?
cheers, andreas
I have a problem with passing Data between a "classic ASP-Page (VBScript)"
and a ASP.NET 2.0 Page using showModalDialog / window.returnValue
-------------------------------------------------------------
Here is the Code-Snippet from the "caller" page:
var rValue="oldValue";
rValue = showModalDialog(test.aspx?,'Name','dialogHeight:400px;
dialogWidth:800px;');
alert(rValue);
-----------------------------------------------------------
Here is the Code-Snippet from test.aspx
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TxtPLZ.Attributes.Add("onClick","javascript:window.returnValue='1',window.close();");
}
}
Clicking on the TxtLabel closes the window, but alert(rValue); shows alway
"undefined"
What am I doing wrong?
cheers, andreas