Ejemplo n.º 1
0
    public void fillfolderdata()
    {
        ConnectionClass mycon = new ConnectionClass();
        string          cid   = Request.QueryString["c_id"];
        DataTable       dt    = mycon.select("select * from tbl_pvt where status='ACTIVE' AND c_id=" + cid);

        //for (int i = 0; i < dt.Rows.Count; i++)
        //{
        //    string url = dt.Rows[i]["path"].ToString();
        //    string ext = Path.GetExtension(url);
        //    if (ext == ".txt")
        //    {
        //        dt.Rows[i]["path"] = "~/imgs/sv.png";
        //    }
        //}
        DataFolder.DataSource = dt;
        DataFolder.DataBind();
    }