如题~~
解决方案 »
- mapx设置区域图元样式问题
- webbrowser访问访问iframe遭拒绝
- 关于DataGrid绑定DropDownList
- 登陆后转不到messages页面
- 如何用Button1.Attributes.Add("onclik", "")来停止另一个服务器控件的OnChange事件?
- 用C#编写操作oracle数据库程序,插入数据为什么是乱码。
- 有没有办法在内存当中dataset当中的表(table)实现一些聚合性质的操作?高手帮忙!
- C#中使用COM组件之后不能释放COM组件使用的内存
- 一个关于数组的算法
- 谁破坏了封装?( gujianxin(木头象) 请进,讨论一下。;))
- 我在2003环境下测试网页,可是每次都出现"Service Unavailable",为什么?
- 如何连接internet的mysql数据库(C# win application)
{
get { return "server=" + GetXmlString("DbConfig.config", "DataBaseSetting/Server1") + ";database=" + GetXmlString("DbConfig.config", "DataBaseSetting/DbName1") + ";Uid=" + GetXmlString("DbConfig.config", "DataBaseSetting/UID1") + ""; }
}private static string GetXmlString(string Filename,string Xmlpath)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Application.StartupPath+"\\"+Filename);
string strValue = null;
try
{
XmlNode myNode = xmldoc.SelectSingleNode(Xmlpath);
strValue = myNode.InnerText.Trim();
}
catch (Exception e)
{
strValue = "Configuration File Read Error.\nDetail information:" + e.Message;
}
return strValue;
}
public static SqlConnection AccessToData(string ConnString)
{
SqlConnection _SqlConn = new SqlConnection(ConnString);
_SqlConn.Open();
return _SqlConn;
}