Click here to Skip to main content
15,881,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a "image" folder. I can upload photos in this folder. I want to see all photos in this folder in my photoshow.aspx page. I don't use a database.

Or

i can use a simple gallery just like this http://www.realitysoftware.ca/portfolio/websites/flashgallery/[^]


but i can't use this one, because script has php code. My hosting use windows server. This gallery type is acceptable for me. Because this script show all of the photos in img folder.


There are a lot of topics on this subject. But just information pollution.

I use Asp.Net C#.
Thanks for help.
Posted
Comments
adriancs 11-Apr-13 6:55am    
rewrite the php script in c#
[no name] 11-Apr-13 6:55am    
And your question/problem is what?
kozmikadam 11-Apr-13 6:57am    
how can i do this ? just show a way. what should i do ?
[no name] 11-Apr-13 7:23am    
The very first thing you should do is read http://www.codeproject.com/Articles/64628/Code-Project-Quick-Answers-FAQ

 
Share this answer
 
I guess following is what you were looking for. However this is just an example how u can load images in a control. Rest, being a developer i guess u can do...

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace createButtonAtRuntime
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DirectoryInfo di = new DirectoryInfo(@"C:\Users\Public\Pictures\Sample Pictures");

            FileInfo[] Images = di.GetFiles("*.jpg");

            for (int i = 0; i <= Images.Length - 1; i++)
            {
                checkedListBox1.Items.Add(Images[i]);
            }
        }
    }
}



i guess this solution shows you some way...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900