在ArticleDAO的FeedBack()方法中,
SqlCommand cmd=new SqlCommand(sql,con)------这里竟然漏写了con
不过通在网上的搜寻答案,知道了一切本来不知道的方法,这也算学习进步了:
private static string SQLstring = System.Configuration.ConfigurationManager.AppSettings["connectionString"];---可设为static类型
| 龙之家园 |
|
||
| 我的博客我做主! | |||
![]() |
|
|
博客园
|
|