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 16: 
Line 17:         string title, description, keyword;
Line 18:         title = dv[0]["MetaTitle"].ToString();
Line 19:         description = dv[0]["MetaDescription"].ToString();
Line 20:         keyword = dv[0]["KeyWord"].ToString();

Source File: d:\vhosts\wiindi.net\httpdocs\doi-song.aspx.cs    Line: 18

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +75
   System.Data.DataView.get_Item(Int32 recordIndex) +13
   xa_hoi.Page_Load(Object sender, EventArgs e) in d:\vhosts\wiindi.net\httpdocs\doi-song.aspx.cs:18
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2602


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175