asp.net mvc - How do I add an order by to server side code in my mvc View -
How do I include the first line in
and
& lt;% foreach (Miscellaneous items in the model. PaymentTemplates) {%> & Lt; TR & gt; & Lt; Td> & Lt;% = Html.Encode (item line)%> & Lt; / Td> & Lt; Td> & Lt; Strong & gt; & Lt;% = string.format ("{0: C}", item.mountTotal)%> & Lt; / Strong> & Lt; / Td> & Lt; Td> & Lt;% = string.format ("{0: c}", item amount)%> & Lt; / Td> & Lt; Td> & Lt;% = string.format ("{0: c}", item.mountIndex)%> & Lt; / Td> & Lt; / TR & gt; & Lt;%}% & gt; -
foreach (Miscellaneous item in module. PaymentTormatotals.order BI (PaymentImotMontal) = & Gt;
But to make your view stupid, consider placing this command in your model or controller.
Comments
Post a Comment