ASP.NET theme not rendering correctly

前端 未结 5 1049
小蘑菇
小蘑菇 2021-01-28 06:12

I have a small web application which uses themes. The themes work on host, so on preinit, if the host = a, load x theme, if the host = b, load y theme.

In my code this

5条回答
  •  臣服心动
    2021-01-28 06:37

    Are you setting the Theme early enough in your code? A Theme must be applied to a page very early in the request lifecycle, in the PreInit event, if you do it in code-behind.

提交回复
热议问题