Unlike code expressions that are evaluated and sent to the response, this is the blocks of code that are executed. It is useful for declaring variables that may be required to be used later.
@{ int x = 123; string y = "aa"; }
Liked By
Write Answer
What are Code Blocks in Views?
Join MindStick Community
You have need login or register for voting of answers or question.
Manish Kumar
15-May-2017Unlike code expressions that are evaluated and sent to the response, this is the blocks of code that are executed. It is useful for declaring variables that may be required to be used later.