C# Target="_blank" in a LinkButton

You can use like this with Link Button

Replace target="_blank" to OnClientClick="window.document.forms[0].target='_blank';".


None of the current answers are correct, even the <a> tag is not the correct answer in asp.net.

Use the HyperLink Button. There is even a property for the target attribute.

<asp:HyperLink runat="server" 
    NavigateUrl='http://rrs.com/aspx/Equipment/EquipmentType.aspx'
    Target="_blank">
        Create/Edit Part Types
</asp:HyperLink>

You can use the Hyperlink control, which does have a target='_blank' property. However if you must use a LinkButton control, then you can add a OnClientClick attribute which then calls a JavaScript function to open a popup window

window.open();