How to display images from a folder along with image names in C#??
Plzz help
navimir
0
Newbie Poster
Recommended Answers
Jump to Postprotected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sBasePath = System.Web.HttpContext.Current.Request.ServerVariables["APPL_PHYSICAL_PATH"]; if ( sBasePath.EndsWith("\\")) sBasePath = sBasePath.Substring(0,sBasePath.Length-1); sBasePath = sBasePath + "\\" + "pics"; System.Collections.Generic.List<string> oList = new System.Collections.Generic.List<string>(); string[] extensions = { "*.jpg", "*.png" }; List<string> files = new List<string>(); foreach (string filter …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.