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 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

Still picking my way through learning XAML/WPF. If someone can show me how to
Is the best way to do this with Regex? I don't want it picking
I'm considering picking up some very rudimentary understanding of assembly. My current goal is
I'm still picking up ObjC and I'm just trying to make sure I understand
I have noticed some developers picking up new skills and moving from one platform
I'm trying to implement picking using Pyglet's OpenGL wrapper, but I'm having trouble converting
What is the cleanest way of picking up a match variable from a substitution
I'm just picking up development in CakePHP right now so forgive me if this
I'm trying to write a program that finds strings in a character array and
Picking up on YUI and see some opportunities in using the YQuery tool to

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.