how to go other page on dropdown selection using asp.net mvc

Someone asked on Stack Overflow:

I have a dropdownlist box on my page.. with A B C D E F each pages have different images.

Once If I select A I need display one Image like B I need to display other image/table on the page.

Can any one tel me how to do this?

I posted the following answer, which was chosen as the accepted answer:

I’d use jQuery, quick example to get you started:

$('#dropDownList').change(
    function() { 
        $('#contentDiv').html("<img src='yourjpg.jpg' alt='alt text' />"); 
    });

You will want to check some values and pick the correct jpg based on the value selected, but that should get you started.


Originally posted on Stack Overflow — 0 upvotes (accepted answer). Licensed under CC BY-SA.

signed letter b

Dad. Geek. Gamer. Software developer. Cloud user. Old Car enthusiast.  Blogger.


Top Posts


profile for Nate on Stack Exchange, a network of free, community-driven Q&A sites
a proud member of the blue team of 512KB club
Thoughts, opinions, and ideas shared here are my own. © 2026 Nate Bross.