Search code examples
asp.netiis-7ajaxcontroltoolkit

AjaxControlToolkit TabContainer with weird rendering behavior


I've built a web application that contains a page that uses the AjaxControlToolkit's TabContainer/TabPanel objects. I've developed a custom stylesheet, as well. I'm developing using Visual Studio 2010. The following is the behavior of my application:

VS2010 Development Server (localhost:XXXXX): Works as expected with the custom stylesheet.

Local IIS: The TabContainer rendered but the stylesheet wasn't applied. I fixed this by doing a CTRL+F5. It seems that IIS caches stylesheets pretty aggressively.

Remote Server: The TabContainer and TabPanel are completely hidden. Looking at the HTML, all of them have their visibility set to hidden.

The way I got my files onto my remote server were as follows (I haven't yet set up WebDAV or remote publishing because the server is a Windows 7 box and as far as I am aware does not support FrontPage Extensions):

The entire solution is under source code control (SVN).

  1. Checked in all pending changes (including projects, aspx files, css, AjaxControlToolkit binaries)
  2. Synced on the server.
  3. Rebuilt everything on server.
  4. Deployed to local IIS on server (which is externally accessible).

Both on the local IIS on the server and the development server on the server, the TabContainers are completely hidden. Looking at the SVN status on the server project, only the "AjaxControlToolkit.dll" is under source-code control. All the locale-specific DLLs are not on the server. Could this be a potential issue?

I'm not sure what's going on and would appreciate any help. Thanks!


Solution

  • The issue was strange. I was setting the visibility of the active TabPanel to false programmatically in my code-behind. For some reason, on my development machine this didn't cause any problems but in the server machine, it did.