//public void filldata()
    //{
    //    ConnectionClass mycon = new ConnectionClass();
    //   string c_id=Request.QueryString["c_id"];
    //  DataFolder.DataSource = mycon.select("select * from tbl_category where c_id="+c_id);
    // DataFolder.DataBind();
    // }
    protected void addfile_Click(object sender, EventArgs e)
    {
        ConnectionClass mycon = new ConnectionClass();
        SecureFile      sf    = new SecureFile();
        string          cid   = Request.QueryString["c_id"];
        string          type  = mycon.GetValue("select c_name from tbl_category where c_id=" + cid);

        if (type == "Text")
        {
            string ext      = System.IO.Path.GetExtension(folderupload.FileName);
            string filename = DateTime.Now.ToBinary().ToString();
            string savepath = @"~\folder\" + filename + ext;
            folderupload.SaveAs(Server.MapPath(savepath));
            string save   = MapPath("encrypt");
            string source = MapPath("folder");
            sf.encrypt(filename + ext, source + "//" + filename + ext, passs.Text);
            mycon.iud("insert into tbl_pvt values(" + cid + ",'" + savepath + "','" + filename + "','" + sname.Text + "','" + DateTime.Now.ToString() + "','ACTIVE')");
        }
        else
        {
            string ext      = System.IO.Path.GetExtension(folderupload.FileName);
            string filename = DateTime.Now.ToBinary().ToString();
            string savepath = @"~\folder\" + filename + ext;
            folderupload.SaveAs(Server.MapPath(savepath));
            mycon.iud("insert into tbl_pvt values(" + cid + ",'" + savepath + "','" + filename + "','" + sname.Text + "','" + DateTime.Now.ToString() + "','ACTIVE')");
        }
        Response.Write("INSERTED");
        string user_id = Session["u_id"].ToString();

        mycon.iud("insert into tbl_logs values('you have added file into your user folder','" + user_id + "','" + DateTime.Now.ToString() + "')");
        fillfolderdata();
    }