मैं निम्नलिखित दृश्य है: -प्रत्येक पाश के लिए एक के अंदर DisplayFor का उपयोग करना
@foreach(var info in Model.Firewall.FirewallCustomers.OrderBy(a=>a.CustomerName)){
<td>@Html.DisplayFor(info.CustomerVLAN.VLANID)</td>
}
लेकिन मैं निम्नलिखित
@Html.DisplayFor(info.CustomerVLAN.VLANID)</td>
निम्न त्रुटि
मैं मिल जाएगा लिखने में असमर्थ हूँ: -
The type arguments for method 'System.Web.Mvc.Html.DisplayExtensions.DisplayFor(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
तो क्या कोई सलाह दे सकता है कि मेरे फोएच लूप के अंदर DisplayFor का उपयोग कैसे करें?
धन्यवाद
'' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ~ '' ~ ''~~~ – acfrancis