亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

在方法中調用接口時出錯

在方法中調用接口時出錯

萬千封印 2018-08-10 07:10:01
這是后端調用<table id="AttrList" class="fromEditTable setTextWidth3">@foreach(var obj in ForeachClass.ForeachClassProperties(Model)){<tr id="@obj.currentChar"><td style="text-align:right">@obj.currentTitle</td><td>@obj.Example<input id="@obj.currentChar.Substring(2,obj.currentChar.Length)" name="@obj.currentChar.Substring(2,obj.currentChar.Length)" type="hidden" value="@obj.currentValue"/></td><td><a href="javascript:deleteCurrentTR('@obj.currentChar')">[刪除]</a></td></tr>}</table> 前臺我是用了一個foreach循環但是一到調用A_BLL.GetById()方法時就會出現錯誤未將對象引用到實例
查看完整描述

1 回答

?
回首憶惘然

TA貢獻1847條經驗 獲得超11個贊

object value = item.GetValue(model, null);  value變量為null


查看完整回答
反對 回復 2018-08-30
  • 1 回答
  • 0 關注
  • 770 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號