鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

绱㈠紩瓒呭嚭鑼冨洿銆傚繀椤讳负闈炶礋鍊煎苟灏忎簬闆嗗悎澶у皬銆侟br>鍙傛暟鍚岤 index

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭澶勭悊鐨勫紓甯搞€傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.ArgumentOutOfRangeException: 绱㈠紩瓒呭嚭鑼冨洿銆傚繀椤讳负闈炶礋鍊煎苟灏忎簬闆嗗悎澶у皬銆侟br>鍙傛暟鍚岤 index

婧愰敊璇?


琛 49:         //if (data != null && data.ID.HasValue)
琛 50:         //    tagname = data.TagName;
琛 51:         var data1 = articleBO.GetInfos(new SysAttachInfo() { BindTableID = ALConvert.ToInt0(tag[0]), BindTableName = "Tag" }).FirstOrDefault();
琛 52:         if (data1 != null && data1.ID.HasValue)
琛 53:         {

婧愭枃浠碟 e:\澶т紬鍏敤缃戠珯\CMSWeb\Article\ArticleList.aspx.cs    琛孃 51

鍫嗘爤璺熻釜:


[ArgumentOutOfRangeException: 绱㈠紩瓒呭嚭鑼冨洿銆傚繀椤讳负闈炶礋鍊煎苟灏忎簬闆嗗悎澶у皬銆
鍙傛暟鍚岤 index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +78
   System.Collections.Generic.List`1.get_Item(Int32 index) +53
   Article_ArticleList.setAttribute() in e:\澶т紬鍏敤缃戠珯\CMSWeb\Article\ArticleList.aspx.cs:51
   Article_ArticleList.Page_Load(Object sender, EventArgs e) in e:\澶т紬鍏敤缃戠珯\CMSWeb\Article\ArticleList.aspx.cs:30
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:2.0.50727.8806; ASP.NET 鐗堟湰:2.0.50727.8762