troubleshooting Question

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

Avatar of MikeCombe
MikeCombeFlag for United States of America asked on
.NET Programming
3 Comments2 Solutions311 ViewsLast Modified:
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%>
ASKER CERTIFIED SOLUTION
MikeCombe

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros