I am trying to call javascript function inside a helper method in Razor. My code looks something like that:
@helper MyMethod()
{
for (int i = 0; i < 5; i++)
{
drawMe(i)
}
}
The drawMe function is declared in an external js file which is properly included. I have tried surrounding it with tags, using Html.Raw but nothing worked so far. Any help will be greatly appreciated.
Thanks