Paul,
Include a javascript function in your calling page like this:
<script language=javascript>
function opendialog(dlglocation, querystring, dlgheight, dlgwidth,
dlgtop, dlgleft){
var
dialogposition='width='+dlgwidth+',height='+dlghei ght+',top='+dlgtop+',left='+dlgleft;
if (querystring!=null){
dialoglocation+='?'+querystring;
}
var NewWindow = window.open(dialoglocation,'dialog',dialogposition );
if (NewWindow.focus!=null){
NewWindow.focus();
}
}
</script>
Where
dlglocation is the URL of the child window you would like to open
querystring is a querystring containing parameters you would like to
pass to the child
dlgheight, dlgwidth, dlgtop, dlgleft are the height, width, distance
from top and distance from left of the child window, respectively.
Normally, I place functions like this in a VB (or C#) component and add
them to the page as necessary with Page.RegisterClientScript. In this
way, you have a central repository of javascript functions.
>From a link on your calling page, call the opendialog function above
grabbing parameter values on the way:
<asp:hyperlink runat=server id="lnkopenchildwindow" navigateurl=<%#
"javascript

pendialog('dialogs/dlgcomplainants.aspx','parameter1=" &
tbparameter1.text & "¶meter2=" &
tbparameter2.text',400,410,.5*(screen.height-400),.5*(screen.width-410));"
%>
In the code behind for the child, pick up the parameters from the
querystring and do something with them
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
'Get parameters from the query string if they exist
If Request.QueryString("parameter1") <> "" Then
tb1.Text = Request.QueryString("parameter1")
End If
If Request.QueryString("parameter2") <> "" Then
tb2.Text = Request.QueryString("parameter2")
End If
End If
End Sub
I hope this helps you.
Bill E.
Hollywood, FL