阁下的add标签写错了,里面的key应该是name,获取可以试试(System.ConfigurationManager.ConnectionString["AddressBook"].connectionString)如果用这语句要添加系统应用的System.Configuration命名空间,