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.
Loading
SenthilkumarPosted Dec 12, 2011, 4:53 AM
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...