repeater 下的ImageButton 显示图片问题,知道是路径,但怎样检查都没错啊
<asp:ImageButton ID="imgBtnPic" runat="server" width="100%" border="0" ImageUrl='~/images/248/<%#Eval("picid")%>.png' CommandName="imgBtnPic" CommandArgument='<%#Eval("ID") %>' />
protected void InitNotimeBreakfast() { DataSet ds_breakfastclass = bll_menu.GetMenuByRecom("1"); if (ds_breakfastclass != null && ds_breakfastclass.Tables.Count > 0 && ds_breakfastclass.Tables[0].Rows.Count > 0) { Repeater2.DataSource = ds_breakfastclass; Repeater2.DataBind(); } }
ImageUrl='<%# Eval("picid", "~/images/248/{0}.png") %>'