global 里面
  string ie =" <link rel=\"stylesheet\" type=\"text/css\" href=\"style/iecss.css\" />";
  string other = "............";
  string en = "........";
  string cn = "....." ;
  protected void Application_PreRequestHandlerExecute(object sender, EventArgs e)
    {
        if (HttpContext.Current.Handler is Page)
        {
            Page pa = HttpContext.Current.Handler as Page;
            pa.Load += new EventHandler(pa_Load);
        }
    }    void pa_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.Handler is Page)
        {
            Page pa = HttpContext.Current.Handler as Page;
            try
            {               if(  HttpContext.Current.Request.Browser.Browser   ==   "IE"   ) 

pa.Header.Controls.Add(new LiteralControl(ie));

else 

pa.Header.Controls.Add(new LiteralControl(other));
} if(   CultureInfo.CurrentUICulture.TwoLetterISOLanguageName   ==   "en"   ) 

pa.Header.Controls.Add(new LiteralControl(en));

else 

pa.Header.Controls.Add(new LiteralControl(cn));
}                 
            }
            catch
            {
                 
            }
        }
    }

解决方案 »

  1.   

    I give you suggestions is to delete all the thing.and let a understand css's preson to do this.The new visual sudio have a new rule,you understand a little only.you must understand the new html rule and docment file and so on.or you build the new theme folder.take the css codes into the file carefully.a little bit Success and continue others.this code must using in current place.
    if(   Request.Browser.Browser   ==   "IE"   ) 

    addCSS(   "/css/iecss.css"   ); 

    else 

    addCSS(   "/css/other.css"   ); 
    } if(   CultureInfo.CurrentUICulture.TwoLetterISOLanguageName   ==   "en"   ) 

    addCss(   "/css/encss.css"   ); 

    else 

    addCss(   "/css/zhcss.css"   );} 
      

  2.   

    do u want to load css or thin file automaticly?
      

  3.   

      
    wait proper solution...
      

  4.   

    你应该把条件判断的CSS放到Theme外面,还是用动态添加的办法。
      

  5.   

    动态加载切换主题Theme http://hi.baidu.com/5imilan/blog/item/76188cfac0fe3cddb48f31a6.html