3

我在窗体上有一个asp:TabContainer,在应用程序重新部署到服务器之后,这些选项卡不是样式的。如果我使用Webresource.axd URL并尝试在浏览器中加载它,我会重定向到一个登录页面,所以它看起来像是一个身份验证问题,但其他应用程序已经很久之前就已经登录了带有选项卡控件的页面。asp:TabContainer部署后没有设计风格,然后只修复自己?

重新启动Web服务器甚至重新启动似乎不会影响它。

然后,最终风格开始工作,并不停止工作,直到另一个部署,当它通常表现出相同的行为。

是否存在某种缓存或权限问题?

Unstyled tabs

Styled tabs

下面是从web.config中的身份验证:

<authentication mode="Forms"> 
    <forms name=".ASPXAUTH" protection="All" timeout="2400" loginUrl="Default.htm"/> 
</authentication> 
+0

你做完形式的认证?然后告诉我web.config的身份验证配置我可以帮助解决此问题。 –

+0

可能是浏览器缓存问题,但不太可能。没有太多要继续,但你可能需要添加一个异常到Web.config的WebRescource.axd,使其始终可用? – edhurtig

+0

@ArunRana我将web.config中的Forms Authentication部分复制到问题中。 –

回答

0

如果u有改变标签容器的CssClass,它看起来像这样..如果u想要完全改变标签容器的外观,你必须包括标签容器的整个CSS

.tab 
{ 
    margin:5px 0px 5px 0px;  
} 

.tab .ajax__tab_header 
{ 
    font-family: arial,helvetica,clean,sans-serif; 
    font-size: small; 
    border-bottom: solid 5px #00B3B2; 
    padding-left: 50px; 
} 
.tab .ajax__tab_header .ajax__tab_outer 
{ 
    background: url(../Images/sprite.png) #d8d8d8 repeat-x; 
    margin: 0px 0.16em 0px 0px; 
    padding: 1px 0px 1px 0px; 
    vertical-align: bottom; 
    border: solid 1px #a3a3a3; 
    border-bottom-width: 0px; 
    border-radius: 5px 5px 0px 0px; 
} 
.tab .ajax__tab_header .ajax__tab_tab 
{ 
    color: #000; 
    padding: 0.35em 0.75em; 
    margin-right: 0.01em; 
} 
.tab .ajax__tab_hover .ajax__tab_outer 
{ 
    background: url(../Images/sprite.png) #bfdaff repeat-x left -1300px; 
    cursor: pointer; 
} 
.tab .ajax__tab_active .ajax__tab_tab 
{ 
    color: #fff; 
} 
.tab .ajax__tab_active .ajax__tab_outer 
{ 
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADICAYAAAAp8ov1AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJGA41KpTYroIAAACASURBVCjP7ZE7DsJADESfJiL37znNXoJLUNARa7Ni6Bw5AtFEqXAx8vj/wfZNwBBAakPAWukQEJUu1RGVLt9su4yo9eJ3t0FrDWyTg58HezlujFPE9lXAQ8BdQM93R9LtM2ve/vnB22tcF/DaTpItJwHKVWcBk4BLwlw1/nAUvAGm30u0udPq+QAAAABJRU5ErkJggg==") #00B3B2 repeat-x left -100px; 
} 
.tab .ajax__tab_body 
{ 
    font-family: verdana,tahoma,helvetica; 
    font-size: 10pt; 
    padding: 0.25em 0.5em; 
    border: solid 1px #00B3B2; 
    border-bottom:0px; 
    border-right:0px; 
    border-top-width: 0px; 
} 

现在只包括标签容器的cssclass

+0

我不认为这是问题所在。它在部署后停止工作,然后最终自行完成,所以它必须是动态的。 –