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 OrderById . I'm confused with this, i.e. Foonk & amp; Chief selector etc.

  & 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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -