protected void Submit_Click(object sender, EventArgs e) { Candidate candidate = new Candidate { CandidateName = txtCandidateName.Text, FatherName = txtFatherName.Text, MotherName = txtMotherName.Text, RegisterationID = Convert.ToInt32(txtRegisterationID.Text), Mobile = txtMobile.Text }; CandidateBiz candidateBiz = new CandidateBiz(); candidateBiz.SaveCandidate(candidate); CandidateFill(); }