Results 1 to 2 of 2

Thread: imagebutton navigation

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    imagebutton navigation

    Hi, is there a way to make the imagebutton to navigate to another page and with a target="_blank"?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: imagebutton navigation

    Use a hyperlink and set the hyperlink's ImageUrl property. Then set the hyperlink's NavigateUrl property. Then, in the codebehind,

    ImageButton1.Attributes.Add("onclick","window.open(this.href);return false;")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width