Copied to clipboard

Flag this post as spam?

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


  • Antoinette Silago 21 posts 92 karma points notactivated
    Jan 17, 2017 @ 18:17
    Antoinette Silago
    0

    Good Razor coding example

    Hi awesome peeps! I wanted to know if there are any good docs that I can use to learn more about razor coding. I was thinking of using a partial view to handle result of form submission. The result will be dependent on the selection of the form selection by user. Would that be a good way to handle this?

    I have this form, the user will select class to register for and based on selection, I will be showing different items on the next page of registration. So I was thinking of use a partial view to show different results on a page. (Using an If statement on selection) Would this be a good approach? Or is there a better way... I'm open to suggestions? :)

    Screen: enter image description here

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jan 19, 2017 @ 22:39
    Alex Skrypnyk
    1

    Hi Antoinette

    There are tons of Razor tutorials, but if we need to work with Umbraco I would recommend reading these:

    https://github.com/umbraco/UmbracoDocs/blob/master/Reference/Templating/Mvc/index.md

    https://github.com/kgiszewski/LearnUmbraco7

    Thanks,

    Alex

  • Antoinette Silago 21 posts 92 karma points notactivated
    Jan 19, 2017 @ 22:56
    Antoinette Silago
    0

    Thank you Alex!

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jan 20, 2017 @ 08:41
    Alex Skrypnyk
    0

    Antoinette, you are welcome!!!

    Have a nice day!

  • pbl_dk 150 posts 551 karma points
    Jan 22, 2017 @ 11:38
    pbl_dk
    0

    Hi Antoinette, there also this page from microsoft:

    https://www.asp.net/web-pages/overview/getting-started/introducing-razor-syntax-c

    I have found it also useful, because theres an overview over some methods and operators for later reference.

    /Peter

  • Antoinette Silago 21 posts 92 karma points notactivated
    Jan 25, 2017 @ 16:42
    Antoinette Silago
    0

    Thank you Peter.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies