我想知道如何将图像添加到基于XML文档中的imageurl的网格视图。到目前为止,我已经......LINQ to XML和GridView.ImageField
XDocument xmlDoc = XDocument.Load(Server.MapPath("XMLFile.xml"));
var q = from c in xmlDoc.Descendants("Images")
where c.Element("PropertyId").Value.ToString() == DropDownList1.SelectedValue.ToString()
select new
{
Id = c.Element("PropertyId").Value,
Thumb = c.Element("ThumbUrl").Value
};
GridView1.DataSource = q;
GridView1.DataBind();
的正常工作,以显示拇指领域的网址,但而不是显示该如何更改它的像场?
显示您的GridView标记 – abatishchev 2011-04-22 09:28:42