protected void lnkbtnDelete_Click(object sender, EventArgs e)
 {
     DataTable dt = new DataTable();
     dt = (DataTable)ViewState["temptable"];
     try
     {
         foreach (RepeaterItem gr in RepDetails.Items)
         {
             CheckBox chkdelete = (CheckBox)gr.FindControl("chkdelete");
             HiddenField hdntempid = (HiddenField)gr.FindControl("hdntempid");
             HiddenField contactpersonid = (HiddenField)gr.FindControl("htncontactpersonid");
             if (chkdelete.Checked == true)
             {
                 DataRow[] dr;
                 dr = dt.Select("tempid='" + hdntempid.Value + "'", "");
                 dt.Rows.Remove(dr[0]);
                 if (hdnpresenterid.Value != "0")
                 {
                     MasterData objmst = new MasterData();
                     objmst.ContactPerson_Delete(Convert.ToInt32(contactpersonid.Value), "PRESENTER");
                 }
                 if (hdnvenueid.Value != "0")
                 {
                     MasterData objmst = new MasterData();
                     objmst.ContactPerson_Delete(Convert.ToInt32(contactpersonid.Value), "VENUE");
                 }
             }
         }
         ViewState["temptable"] = dt;
         bindcontactperson();
         showhidefooter(false);
     }
     catch (Exception ex)
     {
         lblerrmsg.Text = "Error: " + ex.Message;
     }
 }