image object change according to what button is clicked on a menu.
Hello All, I'm pretty new to ASP.NET. I'm designing an intranet site for our orginization. I'm not too familiar with menu controls. I need to know if there is a way to change an image object to a different .gif, depending on what menu button was clicked. Example: I click on the menu item Administration which is tied to a img url. The current page that I am on, has a .gif for the corporate page, but when the Administration button is clicked and redirects to the default.aspx?id=Admin, I need the .gif file to change to the Admin banner. Help Please!
Please refer to example jpg attached.
Last edited by mikester20; 09-13-2006 at 06:34 PM.
You can't but you can control the ImageURL attribute through code behind/script. Give it an ID and then set the ImageURL = "/imagefolder/" & Request.QueryString("Id") & ".jpg"
And as I mentioned before, the names of sections and images should be the same (this is to avoid long select statements and of course so that image shows up). Also keep them in a separate folder to avoid confusion and keep the directory structure clean.