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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:10:35+00:00 2026-05-16T08:10:35+00:00

I have an action link like this: <%=Html.ActionLink(Name + ( + Count+ ), ActonName,

  • 0

I have an action link like this:

<%=Html.ActionLink(Name + " (" + Count+ ")", "ActonName", "Controller", new { ID= itemID}, null)%>

it shows

football (5)

I want it displays like this:

football (5)

I have try to change the actionlink like this:

<%=Html.ActionLink(Name + " <b>(" + Count+ ")</b>", "ActonName", "Controller", new { ID= itemID}, null)%>

it does not work. any idea to to this?

Many thanks.

  • 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-16T08:10:36+00:00Added an answer on May 16, 2026 at 8:10 am

    ActionLink always encodes the text. You could use Url.Action:

    <a href="<%= Url.Action("ActonName", "Controller", new { ID = itemID }) %>">
        <b>(<%= Count %>)</b>
    </a>
    

    or write a custom HTML helper if you don’t like the tag soup.

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

Sidebar

Related Questions

I have two actionlinks on my MVC view like this: <%= Html.ActionLink (click me,Partial1,Temp,new
I have an action like this: public class News : System.Web.Mvc.Controller { public ActionResult
I have this route routes.MapRoute( ViewGames, // Route name psp/{controller}/{action}, // URL with parameters
I have a controller action that is being executed by a link that was
I have a html.actionlink that i wish to display a link to a members
Global.asax route values routes.MapRoute( Default, // Route name {controller}/{action}/{id}, // URL with parameters new
I have these routes defined: routes.MapRoute(CategoryList_CountryLanguage, Categories/{id}/{urlCategoryName}/{country}/{language}, new { controller = Categories, action =
I tried this code <%: Html.ActionLink(Home, Index, Home, new { @class = NavLink })%>
I have problem with ActionLink. I'd like to pass to my ActionLink parameter for
I've seen (and used) code to have a link spawn a javascript action many

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.