Server Error in '/' Application.

Index 0 is either negative or above rows count.

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.IndexOutOfRangeException: Index 0 is either negative or above rows count.

Source Error:


Line 5:  void Page_Load(object Sender, EventArgs E) 
Line 6:  {
Line 7:  	Output.Text = Main().Replace("<div id=\"catalogHeader\">danh mục</div>", "<div id=\"catalogHeader\">Sản phẩm</div>").Replace("<a href=\"/vn/events/\">Events</a>", "<a href=\"/vn/tin-tuc/\">Tin tức</a>").Replace("<a href=\"/vn/tu-van/\">Tư vấn</a>", "<a href=\"/vn/y-khoa/\">Y khoa</a>");
Line 8:  }
Line 9:  

Source File: d:\Website\huongvietpharma\web\default.aspx    Line: 7

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +4864115
   System.Data.DataView.get_Item(Int32 recordIndex) +12
   Hainhan.Portal.Product() +185
   Hainhan.Portal.Main() +491
   ASP.default_aspx.Page_Load(Object Sender, EventArgs E) in d:\Website\huongvietpharma\web\default.aspx:7
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


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