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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:38:48+00:00 2026-05-28T00:38:48+00:00

I am new to web development. I am using jquery templates and they work

  • 0

I am new to web development. I am using jquery templates and they work fine. However, I have a markup code which has stuff like this among other things:

@Html.ActionLink("MyAction", "MyControllerAction", "MyController")                
<div class="date">
     Posted on : ${DatePosted}
     <br />
     Modified on: ${DateModified}
     <br />
</div>

Now, the razor syntax above is of course not going to be interpreted correctly on client side. Is there any way to make razor syntax work in a jquery template? Any alternative way other than hard-coding the anchor? Does it even provide any benefit, using the html helper in the template?

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-28T00:38:49+00:00Added an answer on May 28, 2026 at 12:38 am

    Javascript does not read any razor syntax, it only reads plain HTML. Razor syntax is code executed on the server, before the resulting HTML is delivered to the browser. Javascript runs on the browser, after it has been delivered HTML content from the server. You are perfectly fine doing this:

    <div class="date">
         @Html.ActionLink("MyAction", "MyControllerAction", "MyController")
         Posted on : ${DatePosted}
         <br />
         Modified on: ${DateModified}
         <br />
    </div>
    

    By the time Javascript gets access to this block, it will look like this:

    <div class="date">
         <a href="/MyController/MyControllerAction">MyAction</a>
         Posted on : ${DatePosted}
         <br />
         Modified on: ${DateModified}
         <br />
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am relatively new to jQuery and web development. I am using jQuery UI
I'm pretty new to web development. Lately I have been making a site using
I am relatively new to web development and learning all the time. I have
I am new to web development, I have to create a web application in
Hi I'm starting a new web development project with my team using Hibernate and
Disclaimer : I'm new to web development. Scenario : I've built an application using
I am new to web development. I am currently using a .js modal dialog
EDIT: I am using Code Igniter: www.codeigniter.com So I'm new to web developement and
I've done lots of java web development using jsps and servlets, and I have
I am new Web App development using Flex Builder 3 and currently I am

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.