随笔分类 -  Asp.net

摘要:public static List<string> GetSqlServerNames() { List<string> serverNames = new List<string>(); DataTable table = SqlClientFactory.Instance.CreateDataSourceEnumerator().GetDataSources(); foreach (DataRow dr in table.Rows) { string ser... 阅读全文
posted @ 2013-06-17 21:21 RattanyiXu 阅读(227) 评论(0) 推荐(0)
摘要:文件下载 阅读全文
posted @ 2013-06-08 01:00 RattanyiXu 阅读(136) 评论(0) 推荐(0)
摘要:using System;using System.Xml;namespace WebLayout.App_Code{ public class XmlHelper { public string XmlPath { get; set; } private XmlDocument xmldoc = new XmlDocument(); /// <summary> /// 加载文件 /// </summary> public void LoadXml() { tr... 阅读全文
posted @ 2013-05-21 16:05 RattanyiXu