public void AddEmployeeToDB(string connectionString)
 {
     StudentDLL.StudentDAL sda = new StudentDLL.StudentDAL();
     sda.InsertStudentIntoDB(connectionString, this);
     //SqlConnection objSqlConnection = new SqlConnection(connectionString);
     //string sqlCommand = "INSERT INTO tblStudent(StudentRollNo,StudentName,StudentAge,StudentAddress,StudentContact,StudentMarks) VALUES(" + Convert.ToInt32(StudentRollNo) + ",'" + Name + "'," + Convert.ToInt32(Age) + ",'" + Address + "'," + Convert.ToInt32(ContactNo) + "," + Convert.ToInt32(StudentMarks) + ")";
     //SqlCommand objSqlCommand = new SqlCommand(sqlCommand, objSqlConnection);
     //objSqlConnection.Open();
     //objSqlCommand.ExecuteNonQuery();
     ////Response.Write("Connect Successfully");
     //objSqlConnection.Close();
 }
 public void AddEmployeeToDB(string connectionString)
 {
     StudentDLL.StudentDAL sda = new StudentDLL.StudentDAL();
     sda.InsertStudentIntoDB(connectionString, this);
     //SqlConnection objSqlConnection = new SqlConnection(connectionString);
     //string sqlCommand = "INSERT INTO tblStudent(StudentRollNo,StudentName,StudentAge,StudentAddress,StudentContact,StudentMarks) VALUES(" + Convert.ToInt32(StudentRollNo) + ",'" + Name + "'," + Convert.ToInt32(Age) + ",'" + Address + "'," + Convert.ToInt32(ContactNo) + "," + Convert.ToInt32(StudentMarks) + ")";
     //SqlCommand objSqlCommand = new SqlCommand(sqlCommand, objSqlConnection);
     //objSqlConnection.Open();
     //objSqlCommand.ExecuteNonQuery();
     ////Response.Write("Connect Successfully");
     //objSqlConnection.Close();
 }