Author: Visual Web Developer | Posted on: 7/2/2010 12:51:33 PM | Views : 943

Hi,
I know this might be a detail problem but yet kind of annoying. 
The first time you click LinkButton1, the webpage www.google.com is not opened. But when you click the second time, then a new browser window is opened. I wonder why that happens. ? I use IE8.
<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton> protected void LinkButton1_Click(object sender, EventArgs e) { LinkButton1.OnClientClick = "window.open('" + "http://www.google.com" + "','_blank'); return false;"; }
 
...

Go to the complete details ...