Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 @ in MVC5 c#

views
     
TSmike9407
post May 19 2017, 07:43 AM, updated 7y ago

On my way
****
Junior Member
604 posts

Joined: May 2015
Why they put @ in the MVC5 I saw some @if(.....)
If they no put @ what will happen?
chowchho
post May 22 2017, 03:41 AM

New Member
*
Junior Member
29 posts

Joined: Apr 2006
Put it simple, it's to indicate your're writing .NET coding in the HTML codes.
TSmike9407
post May 22 2017, 02:04 PM

On my way
****
Junior Member
604 posts

Joined: May 2015
QUOTE(chowchho @ May 22 2017, 03:41 AM)
Put it simple, it's to indicate your're writing .NET coding in the HTML codes.
*
razor view inside need to @ for my if else statement? otherwise it will not recognize my if else statement?

 

Change to:
| Lo-Fi Version
0.0112sec    0.31    5 queries    GZIP Disabled
Time is now: 29th March 2024 - 05:19 AM