ImageButton HrefTarget does not link to _Blank Target

  1. #1

    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 work

    X.Hyperlink()                
            .Text( "Some Company" )
            .NavigateUrl( "http://www.somecompany.com/index.html" )
            .Target("_blank")
  2. #2
    Hello @dangerlinto!

    Thanks for reporting this problem. We already have an open report for this same issue at github #1251 from this thread: ImageButton and HRefTarget.

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

Similar Threads

  1. Replies: 3
    Last Post: Feb 04, 2016, 6:54 AM
  2. [CLOSED] Hyperlink's HrefTarget doesn't work
    By RCN in forum 3.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 20, 2015, 1:04 PM
  3. [CLOSED] Call window like target=_blank codebehind
    By mis@adphk.com in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 19, 2013, 9:33 AM
  4. [CLOSED] HTMLEditor link with new window (target=_blank)
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 18, 2012, 9:53 AM
  5. [CLOSED] [1.0] Button's target link
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 29, 2010, 1:19 PM

Posting Permissions