public int saveadmit(Student_admission student) { Dbconnection cn = new Dbconnection(); string adate = DateTime.Now.ToString(); string ststus = "Active"; string q = "insert into student values('" + student.Stdid + "','" + student.Sname + "','" + student.Fname + "','" + student.Mname + "','" + student.Class + "','" + student.Phone + "','" + student.Address + "','" + student.Birthdate + "','" + adate + "','" + student.Religion + "','" + student.Gender + "','" + ststus + "','" + student.Images + "','" + student.Password + "')"; SqlCommand cmd = new SqlCommand(q, cn.GetConnection()); int row = cmd.ExecuteNonQuery(); cn.getClose(); return(row); }