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!

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...