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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:19:25+00:00 2026-06-16T21:19:25+00:00

Im currently making usercontrol for umbraco that takes all Nodes indside a Node names

  • 0

Im currently making usercontrol for umbraco that takes all Nodes indside a Node names “Features”…
And it all works perfekt, until i wanted to get content from the “Content Picker” property (named linkToPage).

When i tried to use GetProperty("linkToPage").Value, I got an error about it being an object.
So i then added it to a var and debugged, and saw it returned somthing a bit strange…

var linkIdVar = child.GetProperty("linkToPage");

Returns:

-   linkIdVar   {1081}      umbraco.interfaces.IProperty {umbraco.NodeFactory.Property}
    -   [umbraco.NodeFactory.Property]  {1081}  umbraco.NodeFactory.Property
        Alias   "linkToPage"    string
        Value   "1081"  string
        +   Version {00000000-0000-0000-0000-000000000000}  System.Guid
        +   Non-Public members      
    Alias   "linkToPage"    string
    Value   "1081"  string
    +   Version {00000000-0000-0000-0000-000000000000}  System.Guid

And i can’t seem to get the Value to a Int without getting error about it being an object…

So does anyone know how to get arround this, or know a better way to get the page from a Content Picker?

  • 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-16T21:19:26+00:00Added an answer on June 16, 2026 at 9:19 pm

    I think you might need to unbox the value to an integer, like so:

    var val = (int) child.GetProperty("linkToPage").Value;
    

    However, if the content of the property value is not an integer, but a string, as the debugging information seems to indicate, then you need to convert to an integer, like so:

    var val = int.Parse(child.GetProperty("linkToPage").Value as string);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently making a program that will send an email if the date
I am currently making a tiny script that tags cordenades in an array: var
I am currently making an app that will control and make use of the
I am currently making an app and website. Is there a system around that
I am currently making an application for Android that is supposed to synchronize it's
I am currently making a Facebook application for iOS that pulls the profile feed
I'm currently making an iphone app where the user takes a photo or select
Currently making apps [html5/js] that run through various platforms that make use of UIWebView,
i am currently making one android application, i moded title bar, so all content
I am currently making a template in Django that renders some forms. I have

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.