学习无止境!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年8月22日

摘要: XmlDocument doc = new XmlDocument(); XmlDeclaration dec = doc.CreateXmlDeclaration("1.0", "GB2312", null); doc.AppendChild(dec); //创建一个根节点(一级) XmlElement root = doc.CreateElement("First"); doc.AppendChild(root); //创建节点(二级) XmlNode node = doc.CreateElement("Seconde& 阅读全文
posted @ 2011-08-22 10:19 钻石眼泪 阅读(405) 评论(0) 推荐(0)

摘要: //Web编程 HttpContext.Current.Server.MapPath("FileName") System.Web.HttpContext.Current.Request.Path //Windows编程 System.Environment.CurrentDirectory //Mobile编程 Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); A.指定 客户端元素 资源的路径 B.指定 服务器控件 资源的路径 C.确定当 阅读全文
posted @ 2011-08-22 10:17 钻石眼泪 阅读(7567) 评论(0) 推荐(0)