top button
Flag Notify
Site Registration

What are Code Blocks in Views?

+1 vote
215 views
What are Code Blocks in Views?
posted Aug 26, 2016 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Unlike code expressions that are evaluated and sent to the response, it is the blocks of code that are executed. This is useful for declaring variables which we may be required to be used later.

@{
 int x = 123;
 string y = "aa";
 }
answer Aug 27, 2016 by Shivaranjini
...