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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:10:14+00:00 2026-05-12T20:10:14+00:00

I am picking my way through some c# code I inherited, and trying to

  • 0

I am picking my way through some c# code I inherited, and trying to show an image within a link;this is the line that works, and show’s the image, but I need to wrap this in a link.

Response.Write(Html.PropImage(item.MainImage.ImageUrl095, item.AccomName));

I noticed later on there is a link element, so I thought I could copy this (as it is the right link I need) and wrap it around the HTML.PropImage line.Like this

Html.PropRefLink(item.AreaName, item.AccomName, item.AccomCode, Html.PropImage(item.MainImage.ImageUrl095, item.AccomName), (string)ViewData["PDate"], (string)ViewData["PDuration"], (string)ViewData["PSleeps"]); 

I removed the response.write as it was breaking the page, how can I that html.propimage to render within the link ?

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-12T20:10:14+00:00Added an answer on May 12, 2026 at 8:10 pm

    Since the function only allows link text (or so it seems from your comment) your best bet would be to use flat HTML. Change the link text to:

    "<img src=\"" + item.MainImage.ImageUrl095 + "\" alt=\"\" />"
    

    This will render a standard HTML image tag within your link and should work as expected.

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

Sidebar

Related Questions

how to know image picking in uiimagepicker and how to modify the picking image
I am trying to modify a function to be more sensible for my purposes;
I'm wanting to build an application that will tell me how far I've ran.
I am picking up Scala recently. I have been used to C and Java
So I'm working on some MongoDB protocol stuff. All integers are signed little-endian. Using
In this question, assume all integers are unsigned for simplicity. Suppose I would like
I had never had to deal with FileMaker before I started at my current
I'm looking into streaming of prerecorded h.264 videos of HTTP. I'm running into too
I have the following problem: I have a given number of identically formed items
I realise the answer is very likely to be 'no'! Basically, I have a

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.