Oct 04, 2010 11:12 PM|camus|LINK
can you define function in a file and use it in another file ?
well , i managed to do it , but there may be an easiest way. I was able to define functions in _init , but not in the _start file :
return "Outside function calls work too !!!";
function call is simple : PageData["SaySomething"]()
but there may be a built in way and a way to declare functions in the APP_CODE folder in Razor syntax , isnt it ? (i'm full aware of C classes , but i wanted to try to do a 100% razor site , for study purposes )
functions razor webmatrix cshtml