posting your code will be helpful in determining the error.
You could make sure that the location of the images is correct because when you hoover over the images' button it gives you the name of the image which is taken by "code genereation of" the image itself
here is the code:
public void Page_Load(object sender, EventArgs e)
{
int i = 0;
// get the address of the directory, then seach for files with .JPG extension inside
string add = Server.MapPath("pics\\gallery\\");
string[] images = Directory.GetFiles(add , "*.jpg");
// Create ImageButton Array, and use it to store & present result images in determine specifications
ImageButton[] imageBtt = new ImageButton[images.Length];
foreach (string image in images)
{
// Add special character \\ to the address to add it to .ImageURL - e.g. \" adds "
imageBtt[i] = new ImageButton();
imageBtt[i].Width = 70;
imageBtt[i].Height = 47;
imageBtt[i].ID = Path.GetFileNameWithoutExtension(image);
imageBtt[i].Visible = true;
imageBtt[i].ToolTip = Path.GetFileNameWithoutExtension(image);
imageBtt[i].ImageUrl = "\\\\" + image;
imageBtt[i].Click += new System.Web.UI.ImageClickEventHandler(ImageButton_C lick);
ContentPlaceHolder3.Controls.Add(imageBtt[i]);
i++;
}
and you could browse through the website to test the results:
http://www.qebab.com/Galleries.aspx