protected void UploadButton_Click(object sender, EventArgs e)
        {
            try
            {
                InventoryClient InGoodsSave = new InventoryClient();

                if (FileUploadControl.HasFile)
                {
                    //string filename = Path.GetFileName(FileUploadControl.FileName);
                    //string str = Path.GetFullPath(FileUploadControl.FileName);
                    //string str1 = Path.GetFullPath(Convert.ToString(FileUploadControl.PostedFile.FileName));
                    //FileUploadControl.SaveAs(Server.MapPath("~/") + filename);


                    string jsonString = string.Empty; string strResultJson = string.Empty;
                    using (StreamReader inputStreamReader = new StreamReader(FileUploadControl.PostedFile.InputStream))
                    {
                        jsonString = inputStreamReader.ReadToEnd();
                    }


                    // var tableResult = JsonStringToDataTable(jsonString);

                    //string FileName = @"C:\Users\Guna\Documents\INVENTORY_GOODS_ISSUE _Multiple.txt";
                    //var stream = File.OpenText(FileName);
                    //string jsonString = stream.ReadToEnd();

                    if (jsonString.Contains("INVENTORY_GOODS_ISSUE"))
                    {
                        strResultJson = InGoodsSave.SaveInventoryGoodsIssue(jsonString);
                    }
                    else
                    {
                        strResultJson = InGoodsSave.SaveInventoryGoodsRecipet(jsonString);
                    }


                    //  DataTable dt = JsonStringToDataTable(jsonString);

                    //  var dt11 = creatingTempTableWithDatas();

                    // string strval = GetJson(dt);

                    txtResult.Text        = strResultJson.ToString();
                    StatusLabel.ForeColor = System.Drawing.Color.Green;
                    StatusLabel.Text      = "SUCCESS";
                }
            }
            catch (Exception ex)
            {
                StatusLabel.ForeColor = System.Drawing.Color.Red;
                StatusLabel.Text      = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message;
                Response.Write(ex.Message.ToString().Replace("\n", "<br/>"));
            }
        }