Enos

Enos

  • NA
  • 140
  • 26.2k

how to parse an object to a lable

Mar 5 2015 8:13 AM
Am trying to update my label so that when the user click new button it must get the xmlnode and update the number to a string. how can i do that


int updateversion = 1000;
updateversion++;
XmlNode myNode = root.SelectSingleNode("descendant::resheader[@name = 'version']/value");
myNode.InnerText = updateversion.ToString();
lblversion.Text = myNode.ToString();

Answers (2)