protected void btnSave_Click(object sender, EventArgs e)
    {
        ResumeLogic rsl = new ResumeLogic();
        Resume      s   = new Resume();

        s.Name               = txtName.Text;
        s.Experience         = txtExp.Text;
        s.Qualification      = txtQual.Text;
        s.CertificateCourses = txtCertiCourses.Text;
        s.LatestDivingSpot   = txtLatestDiving.Text;
        s.DivingSpotsVisited = txtDivingSpots.Text;


        rsl.Insert(s);


        //String q = "insert into Skill(Name, Type, Description, UploadTime) values(@Name, @Type, @Description,  @UploadTime)";
        //List<SqlParameter> lst = new List<SqlParameter>();
        //lst.Add(new SqlParameter("@Name", txtName.Text));
        //lst.Add(new SqlParameter("@Description", txtDesc.Text));
        //lst.Add(new SqlParameter("@Type", ddlType.SelectedItem.Text));

        //lst.Add(new SqlParameter("@UploadTime", DateTime.Now));


        //DataAccess.ModifyData(q, lst);

        Response.Redirect("ViewResume.aspx");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        ResumeLogic Rsl = new ResumeLogic();
        DataTable   dt  = Rsl.SelectAll();

        Repeater1.DataSource = dt;
        Repeater1.DataBind();
    }
    protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        int         id  = Convert.ToInt32(e.CommandArgument);
        ResumeLogic Rsl = new ResumeLogic();
        Resume      s   = Rsl.SelectByID(id);

        lblresumename.Text               = s.Name;
        lblResumeQualification.Text      = s.Qualification;
        lblResumeExperience.Text         = s.Experience;
        lblResumeCertificateCourses.Text = s.CertificateCourses;
        lblResumeDivingSpot.Text         = s.LatestDivingSpot;
        lblSpotsVisited.Text             = s.DivingSpotsVisited;
    }