protected void btnSend_Click(object sender, EventArgs e) { int authorId = int.Parse(Session["authorId"].ToString()); Classes.Author a = new Classes.Author(); a.authorId = authorId; a.authorName = txtAuthorName.Text; a.updateAuthor(); Response.Redirect("~/App/author/listAuthors.aspx"); }