asp.net mvc - MVC @Url.Abs helper does not seem to exist -


just writing simple mailer using asp mvc mailer have gone through tutorial , email being send. cannot seem include absolute urls. in example use html helper system.web.mvc.urlhelper

the absolute should written so

<a href="@url.abs(@url.action("index","home"))">linkage</a> 

but error

'system.web.mvc.urlhelper' not contain definition 'abs' , no extension method 'abs' accepting first argument of type 'system.web.mvc.urlhelper' found (are missing using directive or assembly reference?)

from searching have done seems add nonchalant, if "you add thing."

any suggestions?

you have add:

@using mvc.mailer; 

to mailer view


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -