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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:41:09+00:00 2026-05-27T16:41:09+00:00

I’m using Umbraco 4.7.1 and have created a custom DocumentType called Partner. I want

  • 0

I’m using Umbraco 4.7.1 and have created a custom DocumentType called “Partner”. I want to use that custom DocumentType in a masterpage. I’ll show the code.

public class Partner : IdentifyingMarkRemoved.DocumentTypes.Page {

    [DocumentTypeProperty(UmbracoPropertyType.Textstring, Mandatory = true, Tab = "Content")]
    public string PartnerName { get; set; }

    [DocumentTypeProperty(UmbracoPropertyType.Textstring, Mandatory = true, Tab = "Content")]
    public string PartnerLevel { get; set; }

    [DocumentTypeProperty(UmbracoPropertyType.Upload, Mandatory = true, Tab = "Content")]
    public string PartnerLogo { get; set; }

    [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Mandatory = true, Tab = "Content")]
    public string PartnerDescription { get; set; }
}

Thats the custom DocumentType.

The Masterpage looks like this:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div id="partnerName"><%= this.CurrentContent.PartnerName %></div>
<div id="partnerLevel"><%= this.CurrentContent.PartnerLevel %></div>
<div id="partnerLogo"><%= this.CurrentContent.PartnerLogo %></div>
<div id="partnerDescription"><%= this.CurrentContent.PartnerDescription %></div>
</asp:Content>

Essentially what happens is a user will create a new page of type “Partner” and the application will demand those four pieces of information from them.

The user will upload an image and when the resulting page is created, the image is shown on the page.

Problem is, what I am getting when I test is this:

partnersname

partnerslevel

/media/541/plogo.jpg

Random text again

I have tried to represent the PartnerLogo as a type “object” so I could cast it to a type “Image” but that gives me an error.

I’ve tried doing that in the code behind, but again, I get an error.

I have attempted various combinations of quotes and nested asp commands, but nothing seems to be working.

I do have the sense that I’m on the edge of getting this right, but I’m too much of an ASP noob to know where I’m going wrong.

Looking forward to some help!

  • 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-27T16:41:09+00:00Added an answer on May 27, 2026 at 4:41 pm

    The image is stored as a string, referencing the URL the image is to be found at. So you will need to add your own tag in the HTML.
    Something like this should work:

    <img src='<%= this.CurrentContent.PartnerLogo %>' />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have thousands of HTML files to process using Groovy/Java and I need to
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.