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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:02:11+00:00 2026-06-13T14:02:11+00:00

I am working in asp.net MVC 3 application with Razor view. I have string

  • 0

I am working in asp.net MVC 3 application with Razor view.

I have string where I need to add a link in it like this:

var closingMsg = "Thank you for submitting your dispute. If you wish, you may <a href='<%= Url.Action('Index', 'Product') %>purchase our SMS alert service</a> for immediate notification of any creditor response or request."; 

But it is giving error.

Please suggest how to do it using href or HTML.actionLink. I need to apply styles to link as well.

  • 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-06-13T14:02:13+00:00Added an answer on June 13, 2026 at 2:02 pm

    Razor uses @ rather than <% %>

    So it would be like this

    <a href='@Url.Action('Index', 'Product')...
    

    This is quite fundamental and would recommend you take some beginner tutorials to familiarize yourself with the basics.

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

Sidebar

Related Questions

I am working on asp.net MVC 3 application. I have created a Razor view
I am working on ASP.net MVC 3.0 Razor View Engine Application. I have a
I am working in ASP.NET MVC 3 application, I am using razor view. I
I am working in an ASP.NET MVC Application. I have a view model as
I am working with an ASP.NET MVC application. I have one master page having
I am working on an asp.net MVC 3 application. I have a C# function
I'm working in an ASP.NET 3.5 MVC application where i've got a view with
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I'm working on multilingual Asp.NET MVC application. In url i need to use category
I am working on an ASP.NET MVC application. This application executes a query via

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.