??/??搴??ㄧ?搴?涓??????″?ㄩ??璇???

?ㄤ?缃 0 澶?娌℃??浠讳?琛???

璇存??: ?ц?褰??? Web 璇锋????达??虹?版???澶?????寮?甯搞??璇锋??ュ????璺?韪?俊???浠ヤ?瑙f???宠???璇?互??浠g??涓???撮??璇????哄???璇︾?淇℃????

寮?甯歌?缁?淇℃?? System.IndexOutOfRangeException: ?ㄤ?缃 0 澶?娌℃??浠讳?琛???

婧???璇?


琛? 39:         if (mds.Tables.Count > 0)
琛? 40:         {
琛? 41:             this.abr[0] = mds.Tables[0].Rows[0]["news1"].ToString();//??棰?
琛? 42:             this.abr[1] = Convert.ToDateTime(mds.Tables[0].Rows[0]["news7"]).ToString("yyyy-MM-dd");//?ユ??
琛? 43:             this.abr[2] = mds.Tables[0].Rows[0]["news4"].ToString();//??瀹?/pre>                      

                  

婧???浠? d:\webs\nfgs\wwwroot\details.aspx.cs    琛?: 41

????璺?韪?


[IndexOutOfRangeException: ?ㄤ?缃 0 澶?娌℃??浠讳?琛???]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2508478
   System.Data.DataRowCollection.get_Item(Int32 index) +20
   details.Page_Load(Object sender, EventArgs e) in d:\webs\nfgs\wwwroot\details.aspx.cs:41
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


????俊?? Microsoft .NET Framework ????4.0.30319; ASP.NET ????4.8.4075.0
Baidu
sogou