在方法中调用接口时出错

https://img2.mukewang.com/5b87a6090001b76404800758.jpg

这是后端调用

<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()方法时就会出现错误未将对象引用到实例


万千封印
浏览 678回答 1
1回答

回首忆惘然

object value = item.GetValue(model, null); &nbsp;value变量为null
打开App,查看更多内容
随时随地看视频慕课网APP