【问题标题】:Why can't the hidden field find the QuestionID?为什么隐藏字段找不到 QuestionID?
【发布时间】:2014-02-25 14:09:37
【问题描述】:

<h3><%# Eval("questionTitle") %></h3> 获取了正确的值并且不返回 null,那么为什么隐藏字段中的值不是:<%# Eval("questionId") %>? questionId 是一个类中的一个属性,并且通过它传递了正确的值。

  • 我们将不胜感激。

【问题讨论】:

    标签: c# asp.net null hidden-field


    【解决方案1】:

    查看这个页面,给出了如何使用 Eval 方法的一个很好的例子。

    http://weblogs.asp.net/nmarun/archive/2009/11/26/asp-net-mvc-viewdata-eval-method.aspx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-22
      • 2011-11-02
      • 2015-11-12
      • 1970-01-01
      • 2021-11-21
      • 2014-08-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多