Posted on: 11/10/2012 12:55:05 AM | Views : 394

I am using google chrome as the test browser. If I use this code to open a window (in the xxx.aspx page HTML)...
onclientclick="window.open('NewCompany.aspx?value1=3')"
I get what I want; a new TAB in the current browser instance, not a new WINDOW / a new browser instance.
If I use this code to open a new window (in the code behind vb file)...
ClientScript.RegisterStartupScript(Me.GetType(), "test", "window.open('NewCompany.aspx', 'anycontent', 'width=620,height=455,status');", True)
I get what I do not want; a new WINDOW in a new browser instance, not a new TAB in the current browser instance.
Any pointers on why? What am I missing? I have played around with the code enough to know that regardless of what the precise code is in the code behind, it is the fact that method is used (code behind or html property) which causes the behavior of new tab or new window. For e ...

Go to the complete details ...