Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1015215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:22:03+00:00 2026-05-16T10:22:03+00:00

In ASP.NET MVC I see I have handy HTML helpers that I can use

  • 0

In ASP.NET MVC I see I have handy HTML helpers that I can use to construct form fields and any number of other little things. But then there’s ‘ActionLinks’.

Why use an ActionLink instead of just writing the darn url myself in an HTML anchor tag?

In other words, why would I use

<%: Html.ActionLink("Back to List", "QuantityTypes") %>

instead of just using plain ol’ HTML and writing:

<a href="/internal/quantitytypes">Back to List</a>

Surely, I must get something extra with the ActionLink. I’m just missing it, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:22:03+00:00Added an answer on May 16, 2026 at 10:22 am

    The action link will build you the proper URL based on the controller, action, areas, params, etc… It generates the URL based on the URL mapping rules defined in the your MVC routing system. It will map params to the correct url as well depending on if it needs to be included in the URL directly or via a querystring param.

    Yes you could do it on your own and just type it all out but it builds the URL for you and ensures the URL that is generate is correct. It’s a helper function… it helps you produce valid links 🙂

    You should read Scott Guthrie’s post and pay extra attention to the section “Constructing Outgoing URLs from the Routing System“. It gives the why and explains other helpers that leverage the routing system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In asp.net mvc I always see the built in html helpers they always have
ASP.NET MVC can generate HTML elements using HTML Helpers, for example @Html.ActionLink() , @Html.BeginForm()
In ASP.NET MVC, I have a main standard form that posts to an action,
I have an ASP.NET MVC project with a form. In the Action method that
While developing my ASP.NET MVC, I have started to see the need for a
ASP.NET MVC seems to correctly automatically bind between HTML form's file input field and
I am using ASP.Net MVC 3, have referenced all the proper DLLs (see included
I have an ASP.Net MVC 3 page in which I have an Html.TextAreaFor control,
I have an ASP.net mvc page that executes a jquery script on load. The
I have an asp.net-mvc site and I use the below javascript library for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.