Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Change Image in DIV

Change Image in DIV

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    archit3000
    wrote on last edited by
    #1

    I have a DIV in my web project whose image in back ground is to changed on SelectedIndexChanged event on 3 drop down lists. All the 3 ddl's have different images associated with them. Basically those images are gif files. But i m unable to do so :( any help???:confused:

    T 1 Reply Last reply
    0
    • A archit3000

      I have a DIV in my web project whose image in back ground is to changed on SelectedIndexChanged event on 3 drop down lists. All the 3 ddl's have different images associated with them. Basically those images are gif files. But i m unable to do so :( any help???:confused:

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      Create 3 css classes in you style sheet, one for each image. Change the class attribute of the div to select the image. Are you trying to change the image with javascript, ajax or postback? Can you post your code that you have tried so far?

      I didn't get any requirements for the signature

      A 1 Reply Last reply
      0
      • T ToddHileHoffer

        Create 3 css classes in you style sheet, one for each image. Change the class attribute of the div to select the image. Are you trying to change the image with javascript, ajax or postback? Can you post your code that you have tried so far?

        I didn't get any requirements for the signature

        A Offline
        A Offline
        archit3000
        wrote on last edited by
        #3

        thanks for ur reply.. i dont want to use javascript. i can use ajax,if get any idea. and those ddl's do use postback

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups