protected void Button1_Click(object sender, EventArgs e)
        {
            int tid = Convert.ToInt32(DeleteTemplate.Text.ToString());
            TemplatesRepository tr = new TemplatesRepository();

            tr.Delete(tid);
            Response.Redirect("Templates.aspx");
        }