Hi madhukar...
recently i did the same thing ..
wht i did is i hav some 10 textboxes..once i entered the value like ID in the textbox,all the vales to be displayed in the remaining textboxes.. here the XML file is the backend..no databse plz.
once you did any changes to the vales and click on the update button the chnages have to reflected on to th eoriginal XML file.
this is the code...
XmlNode node = doc.DocumentElement;
foreach (XmlNode nd in node.ChildNodes)
{
foreach (XmlNode nd1 in nd.ChildNodes)
{
if (nd1.InnerXml.ToString()== edit_mobileno.Text.ToString())
{
if (nd.NodeType == XmlNodeType.Element)
{
//MessageBox.Show(nd.ChildNodes.Count.ToString());
for(int i=0;i<13;i++)
{
nd.ChildNodes[i].InnerXml=st[i];
//MessageBox.Show("changed");
}
doc.Save(@"D:\Newfolder\tirumala\myxml.xml");
MessageBox.Show("record updated succesfully in the XML file");
}
break;
}
}
}
i d be very glad if anyone can come up with a solution to update several equal positions of a xmlDocument without changing its structure and with a single click..,using C# ....thanks