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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:05:58+00:00 2026-05-29T06:05:58+00:00

I using Jquery tabs plugin to have tabs in my view. I want <li><a

  • 0

I using Jquery tabs plugin to have tabs in my view.

I want <li><a href="../JobDetails/Index/1234">JobDetails</a></li> as my first tab.

For this I am doing

   <li>@Html.ActionLink("JobDetails",
                "Index",   // <-- ActionMethod
                "JobDetails",  // <-- Controller Name.
                  new { id = 1234 }
                )</li>

But I view source show me this link

<li><a href="/Coordination?Length=10" id="1234">JobDetails</a></li>

where Coordination is my controller name and I am having these tabs on Coordination controller and Action name(ViewName) is Index.

I am not sure why I am geting Controller name as Coordination even i name it as JobDetails.

  • 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-29T06:05:59+00:00Added an answer on May 29, 2026 at 6:05 am

    That’s because you are using the wrong overloaded method. Try this instead:

        <li>
        @Html.ActionLink
        (
            "JobDetails", 
            "Index",   // <-- ActionMethod 
            "JobDetails",  // <-- Controller Name. 
            new { id = 1234 },
            null // pass a null value for the htmlAttributes object
        )
        </li>
    

    Your original overloaded method is this:

    public static MvcHtmlString ActionLink(
        this HtmlHelper htmlHelper,
        string linkText,
        string actionName,
        Object routeValues,
        Object htmlAttributes
    )
    

    As you can see from the above parameter names, you are passing in “JobDetails” as your link text, so on and so forth. That’s why you’re getting the rendered markup.

    But by using this overload, you just need to pass null for the htmlAttributes object to get your desired markup:

    public static MvcHtmlString ActionLink(
        this HtmlHelper htmlHelper,
        string linkText,
        string actionName,
        string controllerName,
        Object routeValues,
        Object htmlAttributes
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jquery tabs plugin and want to have the background a light
I have this jQuery ajax navigation tabs plugin that I created using some help
Using jQuery UI , I have a tabs plugin and within tab 1 gets
I have some tabs using jQuery UI which work just fine, but I want
I have a problem , i'm using jQuery plugin from http://www.stilbuero.de/jquery/tabs/ , plugin for
I am using jQuery UI tabs. I have 10 tabs, and each tab holds
I have setup some tabs using jquery tools and the history plugin. When i
I have a page that is using jQuery tabs. Within one of my tabs
I am using jquery UI tabs I have three ajax tabs like so: <div
I am using jQuery UI Tabs . <div id=tabs> <ul id=tablist> <li><a href=#fragment-1><span>One</span></a></li> </ul>

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.