Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Doogie Talons 183 posts 318 karma points
    Nov 21, 2011 @ 16:08
    Doogie Talons
    0

    Razor and Datatypes... Can I show the datatype of a page property ?

    I am trying out some razor and want to know if the following can be done.

    Bear with me !

    Lets say I have a page with the page alias

    pageAlias

    and within that I have a field called

    nameAlias which has a datatype of Textstring.

    Can I list the datatype in the template with code similar to...

    @Model.pageAlias.nameAlias.dataType 

    Which would output the word Textstring

    That's the question, can I show the dataType of a page property within the razor model


Please Sign in or register to post replies

Write your reply to:

Draft