本地数据库,数据库名bids,sa密码:123页面文件:
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);Web.config:
<appSettings>
<add key="ConnectionString" server=(local); value="database=bids; persist security info=False;user id=sa;pwd=123" />
</appSettings>出错提示:
Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: The '(' character, hexadecimal value 0x28, cannot begin with a name. Line 5, position 46.Source Error: 
Line 3:  
Line 4:    <appSettings>
Line 5:    
           <add key="ConnectionString" server=(local); value="database=bids; persist security info=False;user id=sa;pwd=123" />
Line 6:    </appSettings>
Line 7: