protected void cmdInsert_Click(object sender, EventArgs e) { //This method uses a paramaterized sql statement to insert a new author into the database //See pages 459-460 int inserted = AuthorAccess.InsertAuthor(txtID.Text, txtLastName.Text, txtFirstName.Text, txtPhone.Text, txtAddress.Text, txtCity.Text, txtState.Text, txtZip.Text, chkContract.Checked); if (inserted > 0) { FillAuthorList(); } }
protected void cmdInsert_Click(object sender, EventArgs e) { AuthorAccess.InsertAuthor(txtID.Text, txtLastName.Text, txtFirstName.Text, txtPhone.Text, txtAddress.Text, txtCity.Text, txtState.Text, txtZip.Text, chkContract.Checked); }