2 simple questions.

NJDubois

Well-known member
Joined
May 15, 2008
Messages
84
Programming Experience
Beginner
I am trying to create my own picture gallery for a band website. Using it as an opportunity to learn asp.net.

My first question. I have the pictures sorted by show inside folders

\pic gal\year-day-month-venuename\
\pic gal\year-day-month-venuename\

and so on

I am using
My.Computer.FileSystem.GetDirectories
&
My.Computer.FileSystem.GetFiles

and would like to make sure that when I am done with the project and copy it over the to server, those two lines will still do the same thing.

Second question. Right now I have everything done but inserting the images. I have looked around on google and have seen a few different ways to do it. I decided on

Dim img As New HtmlImage
img.Src = show_thumb_path(cur_pic + cells)

where show_thumb_path is an array containing a list of strings that are the path to the image. Right now, one item looks sorta like:

\pic gal\2007-03-31-venue\01_thumb_a pic.jpg

VB converts the path string to a URL and it wont load the image. The new path is:

\pic%20gal\2007-03-31-venue\01_thumb_a%20pic.jpg

I get the broken image icon where the pic should be. If I set it to something that isn't in a sub dir, it works great. I found something on Google saying I should go through the string and remove the file system characters and replace them with the correct URL address characters. Which isn't a problem, there just HAS to be an easier way.

Thanks a lot in advanced!
Nick

P.S. If you want to see my work, you can look at
Welcome to the home of WhyNot?

If you go to media, and look at the pic gallery there, I used vb alone to make a bunch of HTML files to be the gallery at first, and if you click on home you can get to the pre-asp.net site and see the difference. Which brings be to another question. Is there another way to do a media player? I have java script tied to some cheap buttons right now on an html page inside a frame so that the music doesn't stop from the user browsing to another part of the page. It works, but I don't like it.
 
Back
Top