Open aspx page in new window without popup
Posted on 2009-05-15
When I use a Hypelink control, I can set the target property to '_blank', and the page is opened in new window (IE) or tab (firefox).
I need this same funcionality, but I need that a click event be processed, too (code behind). The problem is that this control doesn't have a click event.
My page uses ajax. I managed to open the page in new window using ScriptManager.RegisterClientScriptBlock(), but it opens the new window as a popup window, being blocked by the browsers.
How can it be done? Is there a better solution than Hyperlink control?
ps. visual studio 2008