Exemplo n.º 1
0
    protected void cmdUpdate_Click(object sender, EventArgs e)
    {
        //This method uses a paramaterized sql statement to update author attributes in the database
        //See pages 460-461

        int updated = AuthorAccess.UpdateAuthor(txtID.Text, txtLastName.Text, txtFirstName.Text, txtPhone.Text, txtAddress.Text, txtCity.Text, txtState.Text, txtZip.Text, chkContract.Checked);

        // If the update succeeded, refresh the author list.
        if (updated > 0)
        {
            FillAuthorList();
        }
    }
 protected void cmdUpdate_Click(object sender, EventArgs e)
 {
     AuthorAccess.UpdateAuthor(txtID.Text, txtLastName.Text, txtFirstName.Text, txtPhone.Text, txtAddress.Text, txtCity.Text, txtState.Text, txtZip.Text, chkContract.Checked);
 }