Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1093
  • Last Modified:

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....
1 Solution
I seem to recall running into this a while back. Have you read this?

JT_SIROAuthor Commented:
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 ();      

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

r u using reponse.write in ur code? as mentioned in that link

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now