TechEthical CEHP
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SqlServer;
using System.Data.SqlClient;
using System.Data;
using Directory;
namespace Bathuasoft
{
public partial class Gallery_Great_Persons_of_India : System.Web.UI.Page
{
string ImagePath = @"\Img\Gallery\Great-Persons-of-India\";
public List<string> ListGalleryImage = new List<string>();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//Topper Image List
string[] filesindirectory = System.IO.Directory.GetFiles(Server.MapPath(ImagePath));
int n = 0;
foreach (string s in filesindirectory)
{
n = s.IndexOf(ImagePath);
ListGalleryImage.Add(s.Substring(n, s.Length - n));
}
}
}
}
}
TechEthical Mini WebShell Version 1.0, Coded By The_M@T3