1
Answer

how to open the page in a popup window

nagaraju

nagaraju

13y
1.5k
1
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.
Answers (1)
0
Senthilkumar

Senthilkumar

NA 15.2k 2.4m 13y
Hi,

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...
 
Next Recommended Forum