Copied to clipboard

Flag this post as spam?

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


  • Johan 95 posts 264 karma points
    Dec 11, 2015 @ 12:05
    Johan
    0

    adding a space after document type

    I have the folloing code that loops through a document type and displays them

      @foreach (var syv in syvs)
                {
                    @syv.ePost
                }
    

    However, I want a space between each value. How do I do it?

    I tried doing it like this: @syv.ePost + " "; but I get an error doing that.

  • Marc Goodson 2155 posts 14406 karma points MVP 9x c-trib
    Dec 12, 2015 @ 01:18
    Marc Goodson
    0

    Hi Johan

    You can use the parenthesis syntax of razor to concatenate values / add your space eg:

    @(syv.ePost + " ")
    

    if that helps ?

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft