在WEBPART中连接数据库的方法: 在wss_minimaltrust.config文件(在Webconfig文件中查找文件的位置)的<SecurityClass>节点中加入子节点:<SecurityClass Name="SqlClientPerm……