说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。
参数名: index源错误: 
行 63:             else
行 64:             {
行 65:                 string[] arr = { list[0].title, list[0].editPath };
行 66:                 return arr;
行 67:             }
 源码~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BLL层
 //面包屑导航
       public static string[] Link(int id)
       {
           IList<menuList> list = menuList_DAL.MenuSelectForId(id);
           if (id == 2)
           {
               string[] arr = { list[2].title, "content", "8" };
               return arr;
           }
           else if (2 < id && id < 7)
           {
               IList<menuList> _list = menuList_DAL.MenuSelectForUid(id);
               string[] arr = { list[0].title, _list[0].editPath, _list[0].id.ToString() };
               return arr;
           }
            else
            {
                string[] arr = { list[0].title, list[0].editPath };
                return arr;
            }       }---------------------------------------------------------------------------------》
用该方法的地方
<div  id="breadcrumbNav" class="title"><a href="index.aspx">首页 </a>&gt; <a id="linkTwo" runat="server" href="#"></a>&gt; <a id="linkThree" runat="server" href="#"></a>
    </div>后台代码
//面包屑导航
                string[] link2 = menuList_BLL.Link(id);
                string[] link3 = menuList_BLL.Link(uid);
                linkTwo.InnerText = link2[0];
                linkTwo.HRef = link2[2] + ".aspx?id=" + Request["id"] + "&uid=" + link2[2];
                linkThree.InnerText = link3[0];
                linkThree.HRef = link3[2] + ".aspx?id=" + Request["id"] + "&uid=" + Request["uid"];