با سلام بله امکان پذیره.
کد به این صورت
protected void Button1_Click(object sender, EventArgs e)
{
string path = Server.MapPath(@"..\1\img\");
string[] files = System.IO.Directory.GetFiles(path);
string tags="";
foreach (string f in files)
{
string ff = System.IO.Path.GetFileName(f);
tags += "<img width='220' height='114' src='../1/img/{0}'/>\n";
tags = string.Format(tags, ff);
}
Literal1.Text = tags;
}
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
فقط روی افکتش کار میکنم.