May 03, 2016, 12:41 PM
ImageButton HrefTarget does not link to _Blank Target
Using 4.0.0 MVC
X.ImageButton()
.ImageUrl( "~/Resources/Images/ComapnyLogo.gif" )
.Href( "http://www.somecompany.com/index.html" )
.HrefTarget( "_blank" )
This should open the Href in a new window or tab (as defined by the user's browser). By comparison, Hyperlink does workX.Hyperlink()
.Text( "Some Company" )
.NavigateUrl( "http://www.somecompany.com/index.html" )
.Target("_blank")