views:

36

answers:

1

Can you call class methods from inside a view page?

Specifically ones that are not passed into the view?

i.e.

In asp.net MVC I can do this:

<%= SomeClass.FixDateFormat(ViewData.Model.SomeClass.DateCreated) %>

+1  A: 

See this question

Aito