Link to home
Start Free TrialLog in
Avatar of JT_SIRO
JT_SIRO

asked on

Dropdown boxes loose their style in Update Panel

I use some css / javascript templates to style my asp.net site.  When I have dropdown boxes in an update panel, they loose their style after posting back.  See the screen shot attached - The dropdowns on the left are NOT in a update panel, so they look correct.  The 4 dropdowns on the right are the ones that lost their style.  (The looked like the ones on the left before posting back).

Does anyone have any general thoughts on why this would occur?  Or do you need to see all my css / javascript?  There's a lot of it....
p1.png
ASKER CERTIFIED SOLUTION
Avatar of cb1393
cb1393
Flag of United States of America image

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 JT_SIRO
JT_SIRO

ASKER

Hmmm, that looked like it should have worked but it didn't for me.  I tried to set up the App_Theme like they mentioned, but it didn't work either.  But I don't know if I did it right.  The template that I use to style my site consists of several css and js files and subfolders that seem to work in tandem.  So I wasn't exactly sure what folders I needed to put in my App_Themes folder.  I'm not at all familiar with App_Themes.  I just include this in my MasterPage:

      <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" title="no title" charset="utf-8" />      
      <link rel="stylesheet" href="../css/plugin.css" type="text/css" media="screen" title="no title" charset="utf-8" />      
      <link rel="stylesheet" href="../css/custom.css" type="text/css" media="screen" title="no title" charset="utf-8" />      
      <link rel="stylesheet" href="../css/ContentStyle.css" type="text/css" media="screen" title="no title" charset="utf-8" />      
    <script  type="text/javascript" src="../js/jquery/jquery.1.4.2.min.js"></script>
    <script  type="text/javascript" src="../js/slate/slate.js"></script>    <!-- NOTE: This one styles the dropdowns that are losing style -->
    <script  type="text/javascript" src="../js/slate/slate.portlet.js"></script>
    <script  type="text/javascript" src="../js/plugin.js"></script>
    <script type="text/javascript" charset="utf-8">
    $(function ()
    {
          slate.init ();
          slate.portlet.init ();      
    });
    </script>

Please let me know if you see anything else I should try.  thanks -

 
Avatar of Deja Anbu
r u using reponse.write in ur code? as mentioned in that link