<add name="FileExplorerConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\FileManager.mdf;Integrated Security=True;Trusted_Connection=true" /> |
//Here "FileExplorerConnection" is a connection string name, which is defined in Web.config file.
//"Product" is a table name, which is defined in SQL database
SQLFileExplorerOperations sqlobj = newSQLFileExplorerOperations("FileExplorerConnection", "Product"); |
public class SQLFileExplorerDirectoryContent
{
public int itemId { get; set; }
public string dateModified { get; set; }
public bool hasChild { get; set; }
public bool isFile { get; set; }
public string name { get; set; }
public object size { get; set; }
public string type { get; set; }
public int parentID { get; set; }
public string filterPath { get; set; }
} |
$("#fileExplorer").ejFileExplorer({
path: "????",
ajaxAction: localServ,
ajaxDataType: ajaxDataType,
ajaxSettings: {
getImage: {
//change the "src" for the files. which throw 404 error.like <img>..
url: "GetImage{0}"
}
}
}); |