Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

if statement in razor using "?" and ":"

  <option value="S" @(strAttributeFixType == "S" ? "selected" : "")>S</option>
Source by forums.asp.net #
 
PREVIOUS NEXT
Tagged: #statement #razor
ADD COMMENT
Topic
Name
9+8 =