62,073
社区成员
发帖
与我相关
我的任务
分享
public List<Model.AlbumInfo> list = new List<Model.AlbumInfo>();
private readonly BLL.Tab_Album _album = new BLL.Tab_Album();
protected void Page_Load(object sender, EventArgs e)
{
list = _album.GetAlbumInToDdl();
}
if (list.Count == 0)
{
Response.Write("<tr><td><img wid=\"302px\" height=\"322\" alt=\"11\" src=\"images/noalbum.gif\" /></td></tr>");
}
if(list!=null){
if (list.Count == 0)
{
Response.Write("<tr><td><img wid=\"302px\" height=\"322\" alt=\"11\" src=\"images/noalbum.gif\" /></td></tr>");
}
}
Response.Write("<script>var list="+list+"</script>");