window.open function in HREF TAG not working

Posted by Rahul on Stack Overflow See other posts from Stack Overflow or by Rahul
Published on 2011-02-02T23:22:17Z Indexed on 2011/02/02 23:25 UTC
Read the original article Hit count: 451

Filed under:
|

Hi All,

I am trying to open popup using window.open finction but somehow it's not working ... well below is the code

string properties = "left=250px, top=245px, width=700px, height=450px,scrollbars=yes, status=yes, resizable=yes";
TableCell cell = new TableCell();
cell.Text = "<a href=\"javascript:void(window.open('details.aspx?node="+node+"','"+properties+"'))\">" + "View Details</a>";      

But his is not working. While clicking the anchor tag getting javascript error "Invalid argument". Please tell where am I going wrong?

Thanks, Rahul

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#-4.0