Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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
is working on a reply...