Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi I have a Datagrid with a link button for each column. When clicked the link button displays a Modal popup window. I want to get the Modal window to display Details from the Parent page when opened. Can anyone suggest how to do this. Thanks in advance

This[^] might help you.
Share this answer
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)

url = "ReportSwitch.aspx?Level=" + rdoEducationLevel1.SelectedItem.Text.ToString() + "&ListItem=" + ASPxListBox1.SelectedItem.Text.ToString().Trim() + "";
ScriptManager.RegisterStartupScript(this, this.GetType(), "PopUpWindow", "PopUpWindow('" + url + "');", true);


in JavaScript Use this Code:

function PopUpWindow(url) {, "Report", 'height=500,width=1050,left=30,top=50,resizable=no,scrollbars=yes,toolbar=no,status=no,location=no')
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900