protected void SendHoButton_Click(object sender, EventArgs e)
        {
            string makeby = Session["USER_ID"].ToString();

            Dictionary <string, object>         SpRequestClaimParam = this.ClaimSpRequest(makeby);
            List <Dictionary <string, object> > fileInfoParamList   = new List <Dictionary <string, object> >();
            string requestIdOut = string.Empty;
            string errorMsg     = string.Empty;

            if (Session["SpFaceValue"] != null)
            {
                List <Dictionary <string, object> > spFacevalueParamList = this.GetSpFacevalue();
                if (ViewState["DocData"] != null)
                {
                    DataTable dt = (DataTable)ViewState["DocData"];

                    foreach (DataRow dr in dt.Rows)
                    {
                        string filePath = dr["FilePath"].ToString();
                        Dictionary <string, object> fileParam = new Dictionary <string, object>();
                        fileParam.Add("pregistration_no", regNoTextBox.Text.Trim().ToString());
                        fileParam.Add("prequest_id", string.Empty);
                        fileParam.Add("pdocsl_no", string.Empty);
                        fileParam.Add("pdocuments_type_id", documentsTypeDropDown.SelectedValue);
                        fileParam.Add("pfile_nm", dr["FileName"].ToString());
                        fileParam.Add("pfile_navigate_url", filePath);
                        fileParam.Add("pfolder_location", filePath.Substring(0, filePath.LastIndexOf(@"\")));
                        fileParam.Add("pho_upload_flag", 0);
                        fileParam.Add("pbr_upload_flag", 1);
                        fileParam.Add("premarks", string.Empty);
                        fileParam.Add("psys_gen_flag", "S");
                        fileParam.Add("pauth_status_id", "A");
                        fileParam.Add("puser_id", makeby);
                        fileInfoParamList.Add(fileParam);
                    }


                    try
                    {
                        Dictionary <string, object> outPutvalues = spManager.TransactionInsertRequest(SpRequestClaimParam, spFacevalueParamList, fileInfoParamList);
                        requestIdOut = outPutvalues["prequest_id_out"].ToString();
                        errorMsg     = outPutvalues["perrormsg"].ToString();
                        if (string.IsNullOrEmpty(errorMsg) || errorMsg.Equals("null"))
                        {
                            if (!string.IsNullOrEmpty(requestIdOut))
                            {
                                //MessageBox.Show("Request Claimed Successfully. Request Id: " + requestIdOut);
                                Response.Write("<script language='javascript'>swal.fire({icon: 'success',title: 'Request Claimed Successfully. Request Id: " + requestIdOut + "'});</script>");
                                errorMsg = "Request Claimed Successfully. Request Id: " + requestIdOut;
                                ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "SuccessSendToHo('" + errorMsg + "');", true);
                            }
                        }
                        else
                        {
                            if (errorMsg.Contains("unique"))
                            {
                                errorMsg = "Already Claimed with this Registration No.";
                            }
                            ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "Error('" + errorMsg + "');", true);
                        }
                    }
                    catch (Exception ex)
                    {
                        errorMsg = " The following error occured: " + @ex.Message.Replace("\\", "").Replace("//", "");
                        ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "Error('" + errorMsg + "');", true);

                        //MessageBox.Show(" The following error occured: " + ex.Message);
                    }
                }
                else
                {
                    errorMsg = "File Upload Required";
                    ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "Error('" + errorMsg + "');", true);
                }
            }
            else
            {
                errorMsg = "Sanchaypatra and Facevalues are required";
                ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "Error('" + errorMsg + "');", true);
            }
        }