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 4020876
In Process

The Archive Base Latest Questions

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

I just updated a WebForms/ASP.NET MVC 3 hybrid application to use mvc3 and the

  • 0

I just updated a WebForms/ASP.NET MVC 3 hybrid application to use mvc3 and the razor view engine. Everything seemed to be working fine however, now when I use Html.ActionLink() my links do not get resolved correctly or something?

For Example:

 @Html.ActionLink("Create New", "Create") 

generates an anchor tag like this:

<a href="/?action=Create&amp;controller=Network">Create New</a>

instead of what I would expect:

<a href="/Network/Create">Create New</a>

Here is the controller action method:

public class NetworkController : Controller {
    public ActionResult Create() {
       return View(new Network());
    }
}

Any suggestions would be great. Thank you.

  • 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-20T10:16:58+00:00Added an answer on May 20, 2026 at 10:16 am

    As others have said, there’s definitely something up with your route config.

    The routing engine does two things; it resolves a URL to a set of routevalues (which is what’s happening when you type /Network/Create in your browser and it goes to the correction action) and it resolves a set of routevalues to a URL (which is what happens when you do URL generation like in an actionlink). The routes are tested in order, and the first one that declares a match wins, which means you don’t always have the same result both directions if you haven’t set them up right.

    Recommend doing route testing w/ the MVCContrib route helpers, which may help you narrow down your problem. Also, it’s generally a bad practice (or at least unreliable) to rely on the “ambient” route values, as @Chad Moran suggested, if you choose oneof the more explicit overloads of ActionLink you may hve better results as well.

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

Sidebar

Related Questions

One of our ASP.NET WebForms 3.5 pages just suddenly decided not to render the
I have online form builder appplication in ASP.NET MVC3 with Razor views. It is
I have a simple ASP.NET MVC 3 dummy app (just learning MVC coming from
I just updated an app from .NET 2.0 to .NET 4.0 and I have
I've just updated to the latest build of cruisecontrol.net (1.5.0.5972). I've a few teething
I found user controls to be incredibly useful when working with ASP.NET webforms. By
I've got a simple user control in my ASP.NET Webforms project which inherits from
So i'm dealing with an ASP.NET 4.0 Web Forms Application in which the DAL
Just updated SDK and SDK tools in Eclipse, tried to run my application on
I have an ASP.Net webforms app, that uses Ninject 2.2.0.0 I have a HTTPHandler

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.