Server Error in '/cie' 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 231:                NewsDetail_Obj.NEWS_ID = Request.QueryString("ID")
Line 232:                dt = NewsDetail_Obj.Select()
Line 233:                NewsTitle = dt.Rows(0).Item("news_Headline")
Line 234:                Page.Title = dt.Rows(0)("news_Headline").ToString '+ " - " + Themes.ThemeContents.SiteName.ToString
Line 235:

Source File: D:\WEB\hamayesh.imps.ac.ir\cie\ExtendedModules\News\UI\Details.ascx.vb    Line: 233

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2483230
   System.Data.DataRowCollection.get_Item(Int32 index) +21
   ExtendedModules_Subjects_UI_Details.Page_Load(Object sender, EventArgs e) in D:\WEB\hamayesh.imps.ac.ir\cie\ExtendedModules\News\UI\Details.ascx.vb:233
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064


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