protected void btnDelete_Click(object sender, EventArgs e)
    {
        author_id = Convert.ToInt32(Request.QueryString["AuthorID"]);

        qLrn_Author author = new qLrn_Author(author_id);
        author.Available = "No";
        author.MarkAsDelete = 1;
        author.Update();

        Response.Redirect("authors-list.aspx");
    }
    protected void btnSave_OnClick(object sender, System.EventArgs e)
    {
        int user_id = Convert.ToInt32(Context.Items["UserID"]);

        if (!String.IsNullOrEmpty(Request.QueryString["authorID"]))
        {
            author_id = Convert.ToInt32(Request.QueryString["authorID"]);
            qLrn_Author author = new qLrn_Author(author_id);

            author.AuthorName = txtName.Text;
            author.Available = rblAvailable.SelectedValue;
            author.Update();
        }
        else
        {
            author_id = createNewAuthor(user_id);
        }

        Response.Redirect("authors-list.aspx");
    }