Link to home
Start Free TrialLog in
Avatar of MikeCombe
MikeCombeFlag 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%>
SOLUTION
Avatar of aplusexpert
aplusexpert

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MikeCombe

ASKER

a better solution