显示图片的代码
public void LiteralDynamic()
{
ProTrakEntities proEntity = new ProTrakEntities();
if (Request.QueryString["Id"] != null)
{
string qString = Request.QueryString["Id"].ToString();
var guid = (from g in proEntity.Projects where g.ProjectGuid == qString select g).First();
int pID = Convert.ToInt32(guid.ProjectId);
List<ProjectImage> image =(from f in proEntity.ProjectImages where f.ProjectId == pID select f).ToList();
//string filename = (image.Filename).ToString();
foreach (var fName in image)
{
string imageHTML = @"<ul ><li><img src='" + Server.MapPath("Uploads/" + fName.Filename) + "' alt='Image1' /></li></ul>";
Literal1.Text+=imageHTML;
}
}
**Script**
<script type="text/javascript">
$(window).bind("load", function () {
$("div#mygalone").slideView()
});
</script>
<script type="text/javascript">
$(window).bind("load", function () {
$("div#myInstantGallery").slideView({
easeFunc: "easeInOutBack",
easeTime: 1200
});
});
</script>
在调试图像时正在检索,但运行骨架图像,如阴影但图像未显示。