Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

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.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:


Line 55:                                         <asp:HyperLink ID="linkchude" runat="server" CssClass="LinkNormalBlue" NavigateUrl='<%# "~/Blogs/" + GetTieuDe(GetnhomChuyenMuc(Eval("Id"))) + "-" +GetIdnhomChuyenMuc(Eval("Id")) + ".aspx" %>'><%# GetnhomChuyenMuc(Eval("Id"))%></asp:HyperLink>&nbsp;<span
Line 56:                                             class="seprater">|</span>&nbsp
Line 57:                                         <%# GetSubChuyenMuc(Eval("Id")) %>
Line 58:                                         vào
Line 59:                                         <%# Convert.ToDateTime(Eval("NgayCapNhat")).ToString("'ngày' dd'/'MM'/'yyyy 'lúc' hh:mm tt")%>

Source File: c:\inetpub\wwwroot\DOTNETEDU\Blogs\Chu-De.aspx    Line: 57

Stack Trace:


[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +78
   System.Collections.Generic.List`1.get_Item(Int32 index) +53
   System.Collections.ObjectModel.Collection`1.get_Item(Int32 index) +81
   DOTNET.Blogs.Chu_De.GetSubChuyenMuc(Object Char) in D:\Project\2014\2014_DOTNET\Code\DOTNET\DOTNET\Blogs\Chu-De.aspx.cs:129
   ASP.blogs_chu_de_aspx.__DataBind__control10(Object sender, EventArgs e) in c:\inetpub\wwwroot\DOTNETEDU\Blogs\Chu-De.aspx:57
   System.Web.UI.Control.OnDataBinding(EventArgs e) +132
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +170
   System.Web.UI.Control.DataBindChildren() +11146927
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +674
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +68
   DOTNET.Blogs.Chu_De.HienThiChuDeSub(Int32 PageNo) in D:\Project\2014\2014_DOTNET\Code\DOTNET\DOTNET\Blogs\Chu-De.aspx.cs:61
   DOTNET.Blogs.Chu_De.Page_Load(Object sender, EventArgs e) in D:\Project\2014\2014_DOTNET\Code\DOTNET\DOTNET\Blogs\Chu-De.aspx.cs:25
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8745; ASP.NET Version:2.0.50727.8745