Hi,
i am having one gridview. in that i have one linkbutton called Lnl_Details . when i click on that link but it will get the sno of that perticular row. now i need to redirect to another page by passing some parameters. the page where i am redirecting should open in the popwindow .Can u please tell me how to achieve it.
Thanks
P.Nagarju.
How to open the page in a popup window
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

SenthilkumarRank #387 · 6.5K reputationPosted Dec 11, 2011, 11:53 PM EST
You can do it in the rowdatabound.
You have to search the link button attribute and the value that has to be into that page.
Label lblSNo = (Label) e.row.FindControl("lblSNo");
LinkButton LnlDetails = (LinkButton) e.row.FindControl("LnlDetails");
LnlDetails.Attributes.Add("OnClick","Window.Open("Details.aspx?SNo="+lblSNo.Text,"")");
Please correct some syntax error.... Hope this will you help...