Author: SamuriCoder | Posted on: 1/13/2009 2:48:09 PM | Views : 235

     protected void yesMakeChange_Click(object sender, EventArgs e)
    {
        confirmPanel.Visible = false;
        // Step 1. Does the product yet exist in the xml file?
        XmlDocument xDoc = new XmlDocument();
        xDoc.Load("D:\\inetpub\\wwwroot\\" + strStoreName + "\\XML\\productConfig.xml");
        XmlNodeList nList = xDoc.SelectNodes("//product[@itemNo = '" + strItemNo + "']");
 
How can I make the 3 xml lines part of the code-behind but yet nList will be available to all the controls ??
 
Other controls all In a row I want to have use the same XML portion i.e.
    protected void cancelChange_Click(object sender, EventArgs e) Go to the complete details ...