xml 문서의 이미지 룰을 기반으로 gridview에 이미지를 추가하는 방법을 알고 싶습니다. 지금까지 내가 ... 엄지 필드에 URL을 보여주기 위해 잘 작동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