public partial class LoginForm : Form { //Main mnFrm; SqlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["DbConn"].ToString());//the exception is thrown on this line when I run the program SqlDataReader sdr; SqlCommand sqlCmd = new SqlCommand(); public LoginForm(Main mnFrm) { //this.mnFrm = mnFrm; InitializeComponent(); }
qlConnection sqlConn = new SqlConnection(ConfigurationManager.ConnectionStrings["DbConn"].ToString());//the exception is thrown on this line when I run the program
using (SqlConnection sett = new SqlConnection(Settings.Default.Setting)) { sett.open(); //your code here; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)