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:


I love it!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s