Server Error in '/' Application.

There is no row at position 0.

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: There is no row at position 0.

Source Error:


Line 58:         }
Line 59:          //dt = NEHelper.GetDataInDataTable(sSQL);
Line 60:          lblDesc.Text = dt.Rows[0]["sDescription"].ToString();
Line 61:          string url=(dt.Rows[0]["sURL"].ToString());
Line 62:          string key = KeywordSplitByComma(dt.Rows[0]["sKeywords"].ToString(), url);

Source File: c:\inetpub\WorkingProjects\NagpurPeopleNewDesign\webdirectory\details.aspx.cs    Line: 60

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +125
   System.Data.DataRowCollection.get_Item(Int32 index) +19
   WebDirectory_Details.Display() in c:\inetpub\WorkingProjects\NagpurPeopleNewDesign\webdirectory\details.aspx.cs:60
   WebDirectory_Details.Page_Load(Object sender, EventArgs e) in c:\inetpub\WorkingProjects\NagpurPeopleNewDesign\webdirectory\details.aspx.cs:35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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