页面回发时的 DotNetNuke CSS 问题?

发布于 2024-07-26 09:06:53 字数 437 浏览 11 评论 0原文

我们在 DotNetNuke 中遇到了一个非常奇怪的 css 问题。

似乎对于我们的任何自定义模块,如果用户单击回发 9 次,皮肤 CSS 就会被删除,页面会变得相当难看。 查看源代码,带有 css 文件 url 的标签消失了。 再单击一次进行 10 次回发后,我们添加的任何自定义 css 文件也会被删除。 似乎有时 css 会在多次回发后返回,但有时却不会。

你点击什么并不重要,重要的是回发的数量。 然而,我们有另一台服务器,在某些日子里会表现良好,而在其他日子里也会有相同的行为。

我们无法将其范围缩小到我们的模块的共同点。 它发生在不共享任何代码的模块中,但不知何故发生在我们尝试过的所有模块中,但不会发生在 DNN 附带的任何其他模块中。

虽然实验中我们还发现你可以回发说 8 次离开页面然后回来,然后你可以再回发 9 次,然后 CSS 就会消失。

We're having a very strange problem with css in DotNetNuke.

It seems that with any of our custom modules, if a user clicks to postback 9 times the skin css is removed and the page becomes rather ugly. Looking at the source the tags with the urls to the css files are gone. After one more click making 10 postbacks, any custom css files we've added are removed as well. It seems that sometimes the css will come back after more postbacks but other times it will not.

what you click on doesn't matter, just the amount of postbacks. However we have another server that on some days will behave fine, and others will have the same behavior.

We can't narrow it down to anything our modules have in common. It happens in modules that do not share any code, but somehow happens in all our modules that we've tried but not in any other modules that come with DNN.

Though experimenting we've also found you can postback say 8 times leave the page and come back, you then can postback 9 more times before the css will be gone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ˇ宁静的妩媚 2024-08-02 09:06:53

我以前也遇到过这种情况,但与 dotnetnuke 没有发生过,所以它可能不适用。

不管怎样,我的情况是我正在发出一个ajax请求,该请求将用一些新行更新表体。 在某些请求中,页面会丢失其 css 样式。 看起来页面上没有使用任何样式。

问题的根源是 ajax 调用返回了无效的 html。 实际上,ajax 返回了一个 500 错误页面,其中包含 HTML 标签,整个交易。 这似乎打破了 IE 中的样式。

如果“postback”== ajax 请求,那么这可能会有所帮助

Something link this has happened to me before but not with dotnetnuke, so it may not apply.

Anyway, my my case what was happening was i was making an ajax request that would update a table body with some new rows. on some requests, the page would lose its css styles. it looked like no styles were used on the page.

the root of the problem was that invalid html was being returned from the ajax call. actually a 500 error page was being returned by the ajax, which contained HTML tags, the whole deal. this seemed to break the styles in IE.

if "postback" == ajax request, then this may help

心的位置 2024-08-02 09:06:53

这是因为没有为我们使用的 DNN 皮肤设置文档类型。 版权是一个副作用。

This was do to not having a doc type set for the DNN skin we were using. The copyright was a side effect.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文