A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Thursday, August 7, 2008

An Arbitrary Cycle Method For ASP.NET MVC

In his Practical Review of ASP.NET MVC , Josh Charles provides a helpful review of ASP.NET MVC from a Rails developer's perspective. It seemed fair and balanced, and the end result is that there's room for improvement, which we're taking to heart. However, that's not the part that caught my attention. He mentioned that he wrote a cycle method but couldn't write it as an extension method to HtmlHelper . this was an instance method that would take two strings and return the one that it didn't return the last time it was called. In my templates, I used this to change the classes for each row of data, to give them different background colors. I considered writing an extension method to the Html object used for other Html operations in the view page...(read more)

Source Click Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy