共 44 篇文章 |
|
ConfigurationManager类正确引用方法。private string m_ExcelCmd = ConfigurationManager.private string m_MyName = ConfigurationManager.在c#源代码中使用 ConfigurationManager 这个类,虽然引用了using System.Configuration这个包,但是编译时还是报错:错误 CS0103: 当前上下文中不存在名称“ConfigurationManager”。 阅169 转0 评0 公众公开 17-10-04 09:13 |
C# Sql Server连接(增、删、改、查)[csharp] view plain copy string MyInsert = "想要执行的sql语句"; SqlCommand MyCommand = new SqlCommand(MyInsert, MyConnection); MyConnection.Open(); MyCommand.ExecuteNonQuery(); MyConnection.Close(); 阅165 转1 评0 公众公开 17-08-20 18:27 |
阅717 转0 评0 公众公开 17-08-20 18:19 |
怎么获得当前行(gridcontrol中)在数据库中某列的值?ds.Tables[0].Rows[gridView1.DataSet ds=new DataSet();System.Windows.Forms.BindingManagerBase dsMgr;dsMgr = this.Tables[0]];string ds中某列的值 = ds.Tables[0].Rows[dsMgr.Position]["某列名"].ToString(); 阅436 转1 评0 公众公开 17-08-20 18:06 |
阅166 转0 评0 公众公开 17-08-20 15:46 |
阅84 转0 评0 公众公开 17-08-20 15:08 |
当前上下文中不存在名称“ConfigurationManager”的解决方法。遇到同样问题的人很多,但所说的,大多模糊,我整理如下:1、调试运行时遇到如题所说的问题。2、问题的原因是:我们没有引用System.Configuration,那么我们就引用呗,在解决方案中的“引用”中右击,在.NET下,找到System.Configuration,单击确定,就可以了。 阅158 转0 评0 公众公开 17-08-20 12:39 |
3:开始制作安装向导完成后即可进入项目文件夹:双击"应用程序文件夹"在右边的空白处右击,选择添加->文件,将你的做的应用程序的可执行文件和相应的类库和组件添加进来. 阅48 转0 评0 公众公开 17-08-20 09:19 |
阅37 转0 评0 公众公开 17-08-12 17:26 |
阅33 转0 评0 公众公开 17-08-12 16:58 |