How do I get the files from Directory in order in asp.net?
I'm getting the files from the Directory in asp.net using c# languages:
string[] array=Directory.GetFiles(Server.MapPath("Image"));
My Image folder has images like Image1.jpg, Image2.jpg,
Image3.jpg........Image100.jpg.
My Issue is, I'm not getting the image files in order. How do I get the
Image files in order say Image1 to Image100....
No comments:
Post a Comment