changing ImageButton image url at runtime

Discussion in 'ASP .Net' started by blarfoc@yahoo.com, Jan 27, 2005.

  1. Guest

    I am using the ImageButton to represent tabs on my webform. I have 5
    tabs. Each tab can have 2 images. A clicked imaagge and a unclicked
    image. When I click on a image that is not clicked I want to change
    the image url. I am using the command argument of the ImageButton to
    hold the name of the image so I know to just add "_up.gif" or "_dn.gif"
    But when I change the imageurl, nothing seems to happen. How do i
    make the change appear on the screen?
     
    , Jan 27, 2005
    #1
    1. Advertising

  2. Wee Bubba Guest

    add an onClick event to your button and change the image in there
    using the ImageUrl property.
    *---------------------------------*
    Posted at: http://www.GroupSrv.com
    Check: http://wwww.HotCodecs.com
    *---------------------------------*

    Posted Via Usenet.com Premium Usenet Newsgroup Services
    ----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
    ----------------------------------------------------------
    http://www.usenet.com
     
    Wee Bubba, Jan 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RobertH
    Replies:
    3
    Views:
    4,784
    RobertH
    Feb 17, 2004
  2. John Espinosa

    Changing the URL of an ImageButton

    John Espinosa, Oct 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    322
    Hermit Dave
    Oct 9, 2004
  3. Replies:
    2
    Views:
    472
  4. Chris
    Replies:
    0
    Views:
    564
    Chris
    Aug 3, 2005
  5. Replies:
    0
    Views:
    93
Loading...

Share This Page