title: add file without full path in zipfolder using SharpZibLib in c#
body: <p>File can add with full path easily like :</p>
  
  <pre><code> z.Add(fpaths);
  </code></pre>
  
  <p>But i wants to add only file not full path use code below but a error :</p>
  
  <pre><code> z.Add(fpaths, filenamed); error is! some invalid arguments 
  </code></pre>
  
  <p>Please have a look my code and let me know how can i manage this code </p>
  
  <pre><code>protected void btnAcceptAll_Click(object sender, EventArgs e)
   {
      int count = 0;
      string msg = string.Empty;
      string filenamezip = "FileFolder\\FilesZip.zip";
      string strPathAndQuery = HttpContext.Current.Request.PhysicalApplicationPath;
      string paths = strPathAndQuery + filenamezip;
      ZipFile z = ZipFile.Create(paths);
      z.BeginUpdate();
      foreach (GridViewRow gvrow in gv.Rows)
      {
          CheckBox chk = (CheckBox)gvrow.FindControl("chkSelect");
          if (chk != null &amp; chk.Checked)
          {
              count++;
              string dirPath = gv.DataKeys[gvrow.RowIndex].Values[3].ToString();
              string fileName = gv.DataKeys[gvrow.RowIndex].Values[1].ToString();
              string filePath = dirPath + "/" + fileName;
              string fpaths = strPathAndQuery + filePath;
              string filenamed = Path.GetFileName(fpaths);
              z.Add(fpaths, filenamed);  //show error
          }
      }
      if (count &gt; 0)
      {
          z.CommitUpdate();
          z.Close();
          BindGrid();
          Session["filenamezip"] = filenamezip;
          ClientScript.RegisterStartupScript(GetType(), "SomeNameForThisScript", "window.open('DownloadZip.aspx', 'DownloadWindow','width=400,height=200');", true);
      }
  
  }
  </code></pre>