I'm using the C# version but the VB would not differ greatly. You dont need to add another button, just locate the photoes.aspx page under the Admin folder, right-click and select view code, locate the Button1_Click event handler. in c# it looks like this:
protected void Button1_Click(object sender, ImageClickEventArgs e) {
DirectoryInfo d = new DirectoryInfo(Server.MapPath("~/Upload"));
foreach (FileInfo f in d.GetFiles("*.jpg")) {
byte[] buffer = new byte[f.OpenRead().Length];
f.OpenRead().Read(buffer, 0, (int)f.OpenRead().Length);
PhotoManager.AddPhoto(Convert.ToInt32(Request.QueryString["AlbumID"]), f.Name, buffer);
// Place to delete the image file
f.Delete();
}
GridView1.DataBind();
}and of course you must have appropriate permissions to delete the file from the server.
Reza Nassabeh
www.professionalcsharp.com
Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.