Hi,
I would like to pass value from parent page to child page. I have a datagrid and one of the columns in it is a linkbutton. clicking on that linkbutton should open up a new window and i would like to pass variables from that row in the datagrid to the child window.
here is what I am doing
private void dgLSV_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if( e.Item.ItemType == ListItemType.EditItem || e.Item.ItemType == ListItemType.AlternatingItem
|| e.Item.ItemType==ListItemType.Item)
{
LinkButton lbtnBN = (LinkButton)e.Item.FindControl("lbtnBN");
lbtnBN.Attributes.Add("OnClick","window.open('Temp2.aspx','calendarPopup','status=yes,toolbar=no,menubar=yes,titlebar=yes,resizable=y es,location=no,scrollbars=no'); ");
}
}
I would like to know how to pass the value using window.open.
Thanks.Did you ever figure this out?
I have to do the EXACT same thing and I need some help with this as I am new to all this.
Thanks and please let me know asap.
Estel_MM
***edit*** Actually I need to pass the parameters through session, can anyone help me with this?try query string
openwindow('test1.aspx?id='+yourvalue,....)
in child load event
lblid.text=response.querystring["id"].tostring();
I would like to pass value from parent page to child page. I have a datagrid and one of the columns in it is a linkbutton. clicking on that linkbutton should open up a new window and i would like to pass variables from that row in the datagrid to the child window.
here is what I am doing
private void dgLSV_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if( e.Item.ItemType == ListItemType.EditItem || e.Item.ItemType == ListItemType.AlternatingItem
|| e.Item.ItemType==ListItemType.Item)
{
LinkButton lbtnBN = (LinkButton)e.Item.FindControl("lbtnBN");
lbtnBN.Attributes.Add("OnClick","window.open('Temp2.aspx','calendarPopup','status=yes,toolbar=no,menubar=yes,titlebar=yes,resizable=y es,location=no,scrollbars=no'); ");
}
}
I would like to know how to pass the value using window.open.
Thanks.Did you ever figure this out?
I have to do the EXACT same thing and I need some help with this as I am new to all this.
Thanks and please let me know asap.
Estel_MM
***edit*** Actually I need to pass the parameters through session, can anyone help me with this?try query string
openwindow('test1.aspx?id='+yourvalue,....)
in child load event
lblid.text=response.querystring["id"].tostring();