string queryStringData = newString; StudentManagement.AddString(queryStringData ); if (string.IsNullOrEmpty(newString)) { return; } else { StudentId = int.Parse(context.Request.QueryString["id"].ToString()); AdmissionNumber= context.Request.QueryString["AdmNo"]; StudentManagement.AddStudents(StudentId ,AdmissionNumber);
public void AddStudents(StudentId ,AdmissionNumber) { Students addStudents=new Students; StudentId ==StudentId , AdmissionNumber==AdmissionNumber db.Students.InsertOnSubmit(addStudents); db.SubmitChanges(ConflictMode.FailOnFirstConflict) }
Students addStudents=new Students;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)