I have a form that in it's C# code (That operate for me Web Reference to GetListItems methode of SharePoint)
I use this code:
{
XmlNode returnXml = WS.GetListItem("ListName",null,ndQuery,null,null,ndQueryOptions);
XmlNode MainNode = returnXml.ChildNodes.Item(1);
MainNode = MainNode.ChildNodes.Item(1);
}
I want to know the value of "rs:data ItemCount" before I do somthing.
I try this
{
XmlNode Nodecounter = MainNode.Attributes.GetNamedItem("rs:data");
int counter = Int32.Parse(Nodecounter.Attributes["ItemCount"].Value);
}
It's not work!!!
How to do it???