P
Paul D. Fox
I'm trying to launch a Child Window from a hyperlink on a Datagrid and have
it recieve multiple values from the Parent Window. Upon recieving the
values in the Child Window, I need to access them in the code-behind so I
can render a datagrid in the Child. I've tried just doing another Postback
in the child's onLoad event but I get a Javascript error. Is there another
way to do this?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ChildWin.aspx.vb"
Inherits="PTTimesheet.ChildWin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>ChildWin</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<pt:styleSheets xmlns
t="http://www.plumtree.com/xmlschemas/ptui/" />
<script language="javascript">
function doInit()
{
var intPayrollPeriodID;
var strContactID;
var intTimesheetID;
var parentArgs = new
Array(intPayrollPeriodID,strContactID,intTimesheetID);
parentArgs = window.dialogArguments;
intPayrollPeriodID = parentArgs[0].toString();
strContactID = parentArgs[1].toString();
intTimesheetID = parentArgs[2].toString();
alert("Recieving: " + intPayrollPeriodID + "|" + strContactID + "|" +
intTimesheetID);
window.execScript("__doPostBack('BindDataGrid','" + parentArgs +
"')","JavaScript");
}
</script>
</HEAD>
<body onLoad="doInit();">
<form id="PTTimesheet_Detail" method="post" runat="server">
<asp:Label id="lblPayrollPeriodID" runat="server"></asp:Label>
<asp:Label id="lblContactID" runat="server"></asp:Label>
<asp:Label id="lblTimesheetID" runat="server"></asp:Label>
</form>
</body>
</HTML>
Paul
it recieve multiple values from the Parent Window. Upon recieving the
values in the Child Window, I need to access them in the code-behind so I
can render a datagrid in the Child. I've tried just doing another Postback
in the child's onLoad event but I get a Javascript error. Is there another
way to do this?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ChildWin.aspx.vb"
Inherits="PTTimesheet.ChildWin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>ChildWin</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<pt:styleSheets xmlns

<script language="javascript">
function doInit()
{
var intPayrollPeriodID;
var strContactID;
var intTimesheetID;
var parentArgs = new
Array(intPayrollPeriodID,strContactID,intTimesheetID);
parentArgs = window.dialogArguments;
intPayrollPeriodID = parentArgs[0].toString();
strContactID = parentArgs[1].toString();
intTimesheetID = parentArgs[2].toString();
alert("Recieving: " + intPayrollPeriodID + "|" + strContactID + "|" +
intTimesheetID);
window.execScript("__doPostBack('BindDataGrid','" + parentArgs +
"')","JavaScript");
}
</script>
</HEAD>
<body onLoad="doInit();">
<form id="PTTimesheet_Detail" method="post" runat="server">
<asp:Label id="lblPayrollPeriodID" runat="server"></asp:Label>
<asp:Label id="lblContactID" runat="server"></asp:Label>
<asp:Label id="lblTimesheetID" runat="server"></asp:Label>
</form>
</body>
</HTML>
Paul