string listName1 = "Word";
string[] fields = { "HEADING", "TEXT" };
string queryStr1 =
"
"
"" + "
"
"";
XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlElement query1 = xmlDoc.CreateElement("Query");
XmlElement viewFields1 = xmlDoc.CreateElement("ViewFields");
XmlElement Image = xmlDoc.CreateElement("image");
query1.InnerXml = queryStr1;
viewFields1.InnerXml = "";
wordlist.Lists lists1 = new wordlist.Lists();
lists1.Url = "http://dw/_vti_bin/Imaging.asmx";
lists1.Credentials = System.Net.CredentialCache.DefaultCredentials;
XmlNode responseNode1 = lists1.GetListItems(listName1, null, query1, viewFields1, "0", null, null);
dt1.Columns.Add("HEADING");
dt1.Columns.Add("TEXT");
DataRow dr1;
foreach (XmlNode node in responseNode1)
if (node.Name == "rs:data")
for (int f = 0; f < node.ChildNodes.Count; f++)
{
if (node.ChildNodes[f].Name == "z:row")
{
string instrument = node.ChildNodes[f].Attributes["ows_HEADING"].Value;
string instrument1 = node.ChildNodes[f].Attributes["ows_TEXT"].Value;
dr1 = dt1.NewRow();
dr1["HEADING"] = instrument;
dr1["TEXT"] = instrument1;
dt1.Rows.Add(dr1);
}
}
view.DataSource = dt1;
view.DataBind();
}
i try this code i did in get image part
plz help me
Replies
Know the answer? Post it — somebody with the same question will find it here.