Answer the question
In order to leave comments, you need to log in
How to fix "ConnectionString property not initialized"?
Hello!
An error occurs:
ConnectionString property not initialized
public partial class NewsWindow : Window
I write:SqlConnection sqlConnection = new SqlConnection(@"Server=(local);Database=DB_NAME;Trusted_Connection=Yes;");
using (SqlCommand sqlCommand = new SqlCommand("SELECT TOP(10) id, title, text, date FROM news ORDER BY id DESC", sqlConnection))
// ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question