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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:32:33+00:00 2026-06-16T02:32:33+00:00

<script id=newsTemplate type=text/x-jquery-tmpl> <div class=news_item style=margin-left:0 !important;> <div class=ni_image><img src=@Url.Action(ViewImage, Image, new {path =

  • 0
<script id="newsTemplate" type="text/x-jquery-tmpl"> 
    <div class="news_item" style="margin-left:0 !important;">
        <div class="ni_image"><img src="@Url.Action("ViewImage", "Image", new {path = "${Thumbnail.Path}"})" alt="${Title}" /></div>

    </div>


</script>

I am trying to render the image on page, and I have to pass the Thumbnail Path to image controller for that.

Jquery tmpl doesnt like it.

How can i fix this?

For background please see:
Replace divs with content from JSON call

  • 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-16T02:32:35+00:00Added an answer on June 16, 2026 at 2:32 am

    The problem is caused by mixing server code (Razor) and client code.

    You are using Razor (on the server) to create a link, but in order to create the link you need the path value which is in the ${Thumbnail.Path} field (client-side) that Razor does not have access to.

    I would need to know a bit more about your code in order to help you come up with a solution.

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

Sidebar

Related Questions

Script link on master page: <head runat=server> <script src=<%=ConfigurationManager.AppSettings[ApplicationURL].ToString()%>Scripts/jquery-1.7.2.js type=text/javascript language=javascript></script> </head> Default.aspx page
aspx script: <script type=text/javascript> $(document).ready(function() { $(.div_soru).hide(); $(.div_soru).first().show(); $(.onceki).click(function() { if ($(this).closest(.div_soru).prev(.div_soru).html() != null)
Script adds id for block, gives: <div id=some>Text</div> After that page should jump for
The script is simple, but cant work. I don't know what's wrong <script type=text/javascript>
This script shows and positions a div like: function myfunction() { obj.style.visibility = visible;
Script <script language=javascript type=text/javascript> function FinalFunction() { //Your First Script return confirm('Are you sure
script <script type=text/javascript> $(document).ready(function () { $('musteri_sno').change(function () { $('form_sayac_secimi').submit(function () { if ($(this).valid())
This script cannot find bannersize unless I write <div id=bannersize></div> before the javascript. The
Script replaces rel attributes to class . Full code - http://jsbin.com/efozi3/8/ It doesn't work
JRuby script.rb throws many Java errors. I tried outputting to a text file, but

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.