public static string Language()
  {
   if ("11"=="22")
    //*********************************需要修改
    return "ENG";
   else
    return "CHS";
  }

public static string GetString (string StringName)
  {
   XmlDocument doc = new XmlDocument();
   Page Page = new System.Web.UI.Page();
   doc.Load(Page.Server.MapPath("~/Language/"+Language()+"/Main.xml"));

   XmlNode child = doc.SelectSingleNode("//"+StringName);
   if (child != null)
   {
    return child.InnerText;
   }
   else
   {
    return "NULL";
   }
  }


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-12-07
  • 2021-11-03
猜你喜欢
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案