AjaxControlToolkit TabContainer 具有奇怪的渲染行为
我构建了一个 Web 应用程序,其中包含一个使用 AjaxControlToolkit 的 TabContainer/TabPanel 对象的页面。我还开发了一个自定义样式表。我正在使用 Visual Studio 2010 进行开发。以下是我的应用程序的行为:
VS2010 开发服务器 (localhost:XXXXX): 使用自定义样式表按预期工作。
本地 IIS: TabContainer 已呈现,但未应用样式表。我通过执行 CTRL+F5 修复了此问题。 IIS 似乎非常积极地缓存样式表。
远程服务器: TabContainer 和 TabPanel 完全隐藏。查看 HTML,它们的可见性都设置为隐藏。
我将文件传输到远程服务器的方式如下(我尚未设置 WebDAV 或远程发布,因为该服务器是 Windows 7 机器,并且据我所知不支持 FrontPage 扩展):
整个解决方案受源代码控制 (SVN) 控制。
- 签入所有挂起的更改(包括项目、aspx 文件、css、AjaxControlToolkit 二进制文件)
- 并在服务器上同步。
- 重建服务器上的所有内容。
- 部署到服务器上的本地 IIS(可从外部访问)。
无论是在服务器上的本地IIS上还是在服务器上的开发服务器上,TabContainers都是完全隐藏的。查看服务器项目上的 SVN 状态,只有“AjaxControlToolkit.dll”处于源代码控制之下。所有特定于区域设置的 DLL 都不在服务器上。这可能是一个潜在的问题吗?
我不确定发生了什么事,非常感谢任何帮助。谢谢!
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).
- Checked in all pending changes (including projects, aspx files, css, AjaxControlToolkit binaries)
- Synced on the server.
- Rebuilt everything on server.
- 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您确定使用的是最新版本的工具包吗?上次将 VS08 项目升级到 VS10 时,我遇到了选项卡可见性问题。
获取最新版本解决了该问题
编辑:您使用 AjaxToolskriptManager 还是仅使用 ScriptManager。您可能需要 Ajaxone 来进行大多数控制?
Are you sure you are using the latest version of the toolkit? I had a visibility issue with the tabs the last time I upgraded a VS08 project to VS10.
Getting the latest version fixed that problem
Edit: Do you use the AjaxToolskriptManager or just the ScriptManager. You probably need the Ajaxone for most controls?
这个问题很奇怪。我在我的代码隐藏中以编程方式将活动 TabPanel 的可见性设置为 false。由于某种原因,在我的开发机器上这没有引起任何问题,但在服务器机器上却引起了任何问题。
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.