Copied to clipboard

Flag this post as spam?

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


  • Roger Withnell 128 posts 613 karma points
    May 19, 2015 @ 15:14
    Roger Withnell
    0

    Visual Basic instead of C#

    Can I use VB instead of C#?

    For example, in a template I can add a c# code block @{........}  but a VB code block @Code..........EndCode does not work?

  • Urvish 252 posts 776 karma points
    May 19, 2015 @ 15:18
    Urvish
    100

    Hi Roger,

    Yes you can use VB code instead of C#.

    and @{...} is a razor syntax.

    There may be Umbraco is running in MVC mode.

    So you need to change Default Render Engine to WebForms in UmbracoSettings.config file.

    After that you can use VB code.

    Hope it will help.

    Regards,

    Urvish Mandaliya

Please Sign in or register to post replies

Write your reply to:

Draft