错误原因:extjs包和FineUI版本不一致 或者是 webconfig配置中 没有设置为任何人可访问 解放方法下载和FineUI版本相同的extjs包就ok了
解决方法:FineUI主题切换时 iframe内的内容主题不变的解决方法:窗体继承 PageBase页面
PageBase页面代码:
public class PageBase : System.Web.UI.Page { #region OnInit protected override void OnInit(EventArgs e) { if (!IsPostBack) { if (PageManager.Instance != null) { HttpCookie themeCookie = Request.Cookies["Theme_v4"]; if (themeCookie != null) { string themeValue = themeCookie.Value; PageManager.Instance.Theme = (Theme)Enum.Parse(typeof(Theme), themeValue, true); //if (IsSystemTheme(themeValue)) //{ // PageManager.Instance.Theme = (Theme)Enum.Parse(typeof(Theme), themeValue, true); //} //else //{ // PageManager.Instance.CustomTheme = themeValue; //} } HttpCookie langCookie = Request.Cookies["Language_v4"]; if (langCookie != null) { string langValue = langCookie.Value; PageManager.Instance.Language = (Language)Enum.Parse(typeof(Language), langValue, true); } } } base.OnInit(e); } private bool IsSystemTheme(string themeName) { themeName = themeName.ToLower(); string[] themes = Enum.GetNames(typeof(Theme)); foreach (string theme in themes) { if (theme.ToLower() == themeName) { return true; } } return false; } #endregion }