Connect the code of the database

xiaoxiao2021-03-06  41

In the web.config file, add the following code: In the page to be used, add two namespace for system.configuration; use system.data.sqlclient; then add these two lines of code in the code block: string con = configurationSettings.appsettings ["SqlConnectionstring" ]; SqlConnection conn = new sqlconnection (con);

转载请注明原文地址:https://www.9cbs.com/read-77753.html

New Post(0)