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

  • Home
  • SEARCH
  • 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 3663404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:31:35+00:00 2026-05-19T01:31:35+00:00

Hi I have an action link placed on http://localhost:1338/Tags/InternalTag/Test which I would like it

  • 0

Hi I have an action link placed on http://localhost:1338/Tags/InternalTag/Test which I would like it to link to http://localhost:1338/News/News/DisplayArticle?ArticleID=b491bee6-772c-4184-804a-13e53e50aa3d

I used <%: Html.ActionLink("Test", "DisplayArticle", "News")%>
but this results in http://localhost:1338/Tags/News/DisplayArticle

  • 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-19T01:31:35+00:00Added an answer on May 19, 2026 at 1:31 am

    After reading it again I think I might need some more info, but here is what I suggest so far.

    I am assuming InternalTags is your Controller, And Test is your action.

    To have ArticleID in the URL, you need to add ArticleID as a “routeValue“

    But this wont fix it completely.

    Your page is located in Tags/InternalTag/Test

    Your link on your test page is defined as:

    <%: Html.ActionLink("Test", "DisplayArticle", "News")%>
    

    Will resolve to: http://localhost:1338/Tags/News/DisplayArticle

    If you add an ArticleID to the link (as below):

    <%: Html.ActionLink("Test", "DisplayArticle", "News", new {ArticleID = "b491bee6-772c-4184-804a-13e53e50aa3d"}, null)%>
    

    Alternatively:

    <%: Html.ActionLink("Test", "DisplayArticle", new {Controller="News", ArticleID = "b491bee6-772c-4184-804a-13e53e50aa3d"})%>
    

    This will resolve to Tags/News/DisplayArticle?ArticleID={GUID}.

    Incase I have missed something I will cover a different angle:

    To me Tags is the site you are on, which would make News is a completely different site, if you want to go there you will need to hardcode your link as: http://localhost:1338/News/News/DisplayArticle?ArticleID=b491bee6-772c-4184-804a-13e53e50aa3d.

    If they are the same site you will need to sort out the routes in your Global.asax.

    Maybe you can comment on my answer and I’ll edit this accordingly?

    Edit After 1st comment:
    If you can get the route mapping right, often using the Action link is enough to choose the correct route, it requires looking at how your routes are listed, and changing the order and default values used, to ensure the signatures are specific enough to choose the route you want.

    To force the route to a specific choice you can use Html.RouteLink(linkText,routeName,routevalues)

    This will allow you to control the exact route you want to use and then pass in the routeValues for the controller, action and ArticleID.

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

Sidebar

Related Questions

I have an action like this: public class News : System.Web.Mvc.Controller { public ActionResult
I have a controller action that is being executed by a link that was
i have a link <a id=DownloadLink href='controller/action' target=_blank>Download File</a> that has to open a
I've seen (and used) code to have a link spawn a javascript action many
I have an action which I need to post forward onto another action if
I have outbound links like this in my html: <a href=http://www.example.com class=gaLink1 target=_blank onCLick=ga_track_link('action',
Sometimes my application generates URLs that look like http://localhost/?Area= or http://localhost/SomeController?Area= I don't currently
I have the following action link in a view for shows at for example
I have a sticky side menu that I would like to have be able
I have a html.actionlink that i wish to display a link to a members

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.