How to fix “The ConnectionString property has not been initialized”

后端 未结 6 461
一生所求
一生所求 2020-11-27 04:58

When I start my application I get: The ConnectionString property has not been initialized.

Web.config:



        
6条回答
  •  旧巷少年郎
    2020-11-27 05:25

    Simply in Code Behind Page use:-

    SqlConnection con = new SqlConnection("Data Source = DellPC; Initial Catalog = Account; user = sa; password = admin");
    

    It Should Work Just Fine

提交回复
热议问题