This can be done in codebehind the ItemDataBound event.
LinkButton lb = dataItem.FindControl("btn") as LinkButton;
string qString = "abc.aspx?value=" + lb.Text;
lb.OnClientClick = "window.open
('"+qString +"',null,"location=0,status=0,toolbar=0,
menubar=0,resizable=1","true");
";