Max Schmeling
T4MVC and absolute URLs
I’ve been using T4MVC for quite some time now, but I’ve just discovered a wonderful feature: the ability to generate absolute URLs using the standard T4MVC strongly typed helpers. It’s extremely simple, compared to doing it the manual way. If you have a controller named AccountController with an action called Login, the following line will return a string with the absolute URL to the login page:
Url.ActionAbsolute(MVC.Account.Login())
I love it!
-
Meta



