namespace web.control
{
using System;
using System.Web.UI;
using System.Xml;
public partial class agentmenu : UserControl
{
protected string strmenu;
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument document = new XmlDocument();
document.Load(base.Server.MapPath("../config/agentmenu.config"));
XmlNodeList list = document.SelectNodes("//menu");
XmlNodeList list2 = document.SelectNodes("//list");
int num = 0;
foreach (XmlNode node in list)
{
num++;
this.strmenu = this.strmenu + "
";
}
}
}
}