Avatar of MikeCombe
MikeCombe
Flag for United States of America asked on

How to use <asp:DropDownList> to change/show css <div>

I use an include file called inc_logo.aspx in my default.aspx webpage.
When a user clicks on a dropdown box in default.aspx, I want to change a logo on
default.aspx....depending on the item selected in the dropdown box. The dropdown box
code is in code-behind in default.aspx

During the user clicks on default.aspx, I set session variables.
I don't think that is the best way to make my logo change.
Any ideas as to how I can change my logo more directly ?

Here's the code in the inc_logo.aspx webpage:
 <%If Not Session("curTown") = "" Then%>
    <div class="LogoTown"></div>
 <%Else%>
     <%If Session("curState") = "" Then%>
           <div class="LogoUSA"></div>
     <%Else%>
           <div class="LogoState"></div>
    <%End If%>
 <%End If%>
.NET Programming

Avatar of undefined
Last Comment
MikeCombe

8/22/2022 - Mon
SOLUTION
aplusexpert

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
MikeCombe

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
MikeCombe

ASKER
a better solution
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy