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 49:         InfoTitle_tf.tradeFocusingId = Int32.Parse(Request.QueryString["TradeFocusingId"].ToString());
Line 50:         DataView InfoTitle_dv = InfoTitle_tf_Imp.GetDataByTradeFocusingId(InfoTitle_tf);
Line 51:         InfoTitle = InfoTitle_dv[0]["Title"].ToString();
Line 52: 
Line 53:         strlmmc = InfoTitle_dv[0]["lmmc"].ToString().Trim();

Source File: e:\YFWEB\yf115\TradeFocusingDetail.aspx.cs    Line: 51

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +5315817
   System.Data.DataView.get_Item(Int32 recordIndex) +12
   TradeFocusingDetail.Page_Load(Object sender, EventArgs e) in e:\YFWEB\yf115\TradeFocusingDetail.aspx.cs:51
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408