public void GetNewRegistrationPersons() { objAdmin = new clsAdministration(); DataSet dsPersons = objAdmin.GetNewRegistrationPersons(); grvNewRegister.DataSource = dsPersons.Tables[0]; grvNewRegister.DataBind(); }
protected void grvNewRegister_RowEditing(object sender, GridViewEditEventArgs e) { objAdmin = new clsAdministration(); objAdmin.Std_Agr_Id = Convert.ToInt32(grvNewRegister.Rows[e.NewEditIndex].Cells[0].Text); int i = objAdmin.AcceptRegistration(); if (i > 0) { Page.RegisterClientScriptBlock("Student", "<script>alert('Registration Accepted')</script>"); GetNewRegistrationPersons(); } else { Page.RegisterClientScriptBlock("Student", "<script>alert('Error Occur')</script>"); GetNewRegistrationPersons(); } }