Horje
Get all images from folder asp.net Code Example
Get all images from folder asp.net
public IActionResult OnGet()
{
	var provider = new PhysicalFileProvider(webHostEnvironment.WebRootPath);
	var contents = provider.GetDirectoryContents(Path.Combine("uploadedfiles", "images"));
	var objFiles = contents.OrderBy(m => m.LastModified);
   
	return new JsonResult(objFiles);
}




Csharp

Related
c# configurationmanager load from file Code Example c# configurationmanager load from file Code Example
persian datapicker Code Example persian datapicker Code Example
c# one dimensional dictionary Code Example c# one dimensional dictionary Code Example
regular expression for website url validation in c# Code Example regular expression for website url validation in c# Code Example
how to convert a key state to a letter in monogame Code Example how to convert a key state to a letter in monogame Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9