protected void Page_Load(object sender, EventArgs e)
{
Database_Con();
command.CommandText = "select item_no, item_title, item_content, item_imageaddress, item_author, item_publishdate from th_item where item_no='" + Request.QueryString["item_no"] + "'";
dataAdapter.SelectCommand = command;
dataAdapter.Fill(ds, "ItemTable");
FV.DataSource = ds.Tables["ItemTable"];
FV.DataBind();
}
源代码
 <asp:Label ID="lbContent" runat="server" Text='<%# Eval("item_content") %>'>
 <img src='<%# Eval("item_imageaddress") %>' alt=""/>
item_imageaddress为表中一个字段,用来图片存放地址。
其他字段绑定均正常,就是<img src='<%# Eval("item_imageaddress") %>' alt=""/>无法绑定?
怎么回事?