asp:TabContainer 部署后未设置样式,然后自行修复?
我在表单上有一个 asp:TabContainer,在将应用程序重新部署到服务器后,选项卡没有样式。如果我获取 Webresource.axd URL 并尝试在浏览器中加载它,我会重定向到登录页面,因此这似乎是一个身份验证问题,但应用程序的其余部分早在您访问之前就已经登录了带有选项卡控件的页面。
重新启动 Web 服务器甚至重新启动似乎都不会影响它。
然后,最终这些样式开始工作,并且不会停止工作,直到另一个部署,此时它通常表现出相同的行为。
是否存在某种缓存或权限问题?
这是来自 web.config 的身份验证:
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="2400" loginUrl="Default.htm"/>
</authentication>
I have an asp:TabContainer on a form and after the app is re-deployed to the server, the tabs aren't styled. If I take the Webresource.axd URL and try to load it in the browser, I get a redirect to a login page, so it seems like an authentication problem, yet the rest of the app has already been logged in long before you get to the page with the tab control.
A restart of the web server and even a reboot don't appear to affect it.
Then, eventually the styles start working and do not stop working until another deployment, when it usually exhibits the same behavior.
Is there some kind of caching or permissions issue going on?
Here's the authentication from the web.config:
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="2400" loginUrl="Default.htm"/>
</authentication>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题是保护级别(全部)。使其 CSS 文件可用于非受保护的页面。
了解有关 在 web.config 中设置特定页面或文件夹的授权规则
The Problem is protection level(ALL). Make it CSS files are available to non protected pages.
Learn More about Setting authorization rules for a particular page or folder in web.config
如果您更改了选项卡容器的 cssclass,它将如下所示。如果您想完全更改选项卡容器的外观,您必须包含选项卡容器的整个 css
,现在只需包含选项卡容器的 cssclass
if u have changes the cssclass of the tab container, it will look like this.. if u want to completely change the look of tabcontainer u have to include the entire css of the tab container
now just include the cssclass for the tab container