PDA

View Full Version : ImageButton HrefTarget does not link to _Blank Target



dangerlinto
May 03, 2016, 12:41 PM
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 work


X.Hyperlink()
.Text( "Some Company" )
.NavigateUrl( "http://www.somecompany.com/index.html" )
.Target("_blank")

fabricio.murta
May 03, 2016, 7:50 PM
Hello @dangerlinto!

Thanks for reporting this problem. We already have an open report for this same issue at github #1251 (https://github.com/extnet/Ext.NET/issues/1251) from this thread: ImageButton and HRefTarget (http://forums.ext.net/showthread.php?60570).

Please follow that thread from now as we are going to update there when we get the bug fixed!