后台代码是这样的:        DataSet GetMenuData()
        {
            MySqlConnection con = new MySqlConnection(connectionString);
            MySqlDataAdapter dadCats = new MySqlDataAdapter("SELECT * FROM Categories", con);
            MySqlDataAdapter dadProducts = new MySqlDataAdapter("SELECT * FROM Products", con);
            DataSet dst = new DataSet();
            dadCats.Fill(dst, "Categories");
            dadProducts.Fill(dst, "Products");
            dst.Relations.Add("Chidren",
                dst.Tables["Categories"].Columns["CategoryID"], 
                dst.Tables["Products"].Columns["CategoryID"]);
            return dst;
        }        public void PopulateMenu()
        {
            DataSet dst = GetMenuData();
            foreach (DataRow masterRow in dst.Tables["Categories"].Rows)
            {
                MenuItem masterItem = new MenuItem((string)masterRow["CategoryName"]);
                Menu1.Items.Add(masterItem);
                foreach (DataRow childRow in masterRow.GetChildRows("Children"))
                {
                    MenuItem childItem = new MenuItem((string)childRow["ProductName"]);
                    masterItem.ChildItems.Add(childItem);
                }
            }
        } 
前台就是添加一个Menu控件
表结构:CategoryID:id, name 
Products: id, name CategoryId
报这个错:Server Error in '/' Application.
--------------------------------------------------------------------------------'column' argument cannot be null.
Parameter name: column 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentNullException: 'column' argument cannot be null.
Parameter name: columnSource Error: 
Line 27:             dadCats.Fill(dst, "Categories");
Line 28:             dadProducts.Fill(dst, "Products");
Line 29:             dst.Relations.Add("Chidren",
Line 30:                 dst.Tables["Categories"].Columns["CategoryID"], 
Line 31:                 dst.Tables["Products"].Columns["CategoryID"]);
 Source File: C:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\MenuTest.aspx.cs    Line: 29 
谢谢各位大大啦!!!