int ID = Convert.ToInt32(Request.QueryString["ID"].ToString()); galleryCat = System.IO.Directory.GetDirectories(Server.MapPath(".") + "/Upload/Gallery"); string tempPath = galleryCat[ID]; string[] GalleryItem = System.IO.Directory.GetFiles(tempPath, "*.jp*"); foreach (string strPath in GalleryItem) Literal1.Text += string.Format("<li><a href='{0}' > <asp:Image ID='Image1' runat='server' CssClass='img' ImageUrl='{0}' /></a></li>", strPath);
Literal1.Text += string.Format("<li><a href=""> <img src="{0}" /></a></li>\n", strPath); Literal1.Text =Literal1.Text.Replace(Server.MapPath("."), "").Replace("\\","/");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)