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="Chi ldWin.aspx.vb"
Inherits="PTTim esheet.ChildWin "%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>ChildWin </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
<pt:styleShee ts xmlns:pt="http://www.plumtree.co m/xmlschemas/ptui/" />
<script language="javas cript">
function doInit()
{
var intPayrollPerio dID;
var strContactID;
var intTimesheetID;
var parentArgs = new
Array(intPayrol lPeriodID,strCo ntactID,intTime sheetID);
parentArgs = window.dialogAr guments;
intPayrollPerio dID = parentArgs[0].toString();
strContactID = parentArgs[1].toString();
intTimesheetID = parentArgs[2].toString();
alert("Recievin g: " + intPayrollPerio dID + "|" + strContactID + "|" +
intTimesheetID) ;
window.execScri pt("__doPostBac k('BindDataGrid ','" + parentArgs +
"')","JavaScrip t");
}
</script>
</HEAD>
<body onLoad="doInit( );">
<form id="PTTimesheet _Detail" method="post" runat="server">
<asp:Label id="lblPayrollP eriodID" runat="server"> </asp:Label>
<asp:Label id="lblContactI D" runat="server"> </asp:Label>
<asp:Label id="lblTimeshee tID" runat="server"> </asp:Label>
</form>
</body>
</HTML>
Paul