call function in controller from view

Posted by user276640 on Stack Overflow See other posts from Stack Overflow or by user276640
Published on 2010-03-15T07:30:16Z Indexed on 2010/03/15 7:39 UTC
Read the original article Hit count: 215

Filed under:
|
|

i wrote a simple function in controller

public string LinkProjectSquareFilter(int squareId)
    {

        return squareId.ToString();
    }

how can i call it from view? it say The name 'LinkProjectSquareFilter' does not exist in the current context

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about controller