I've got this problem trying to use Html helpers. I've read that dynamical casting should work but I am not sure how to get it in my case. Code:
@{
Html.LinkIfHasData(top.Text, Html.MenuTargetURL(top), false,
new { rel = "tab" + @top.ID });
}
LinkIfHasData returns MvcHtmlString and MenuTargetURL returns string.
I tried this:
@{
(string)Html.LinkIfHasData(top.Text, (string)Html.MenuTargetURL(top), false,
new { rel = "tab" + @top.ID });
}
But it doesn't work. Any ideas?
Thank you,
H