Field.Control

Version: - string  

Summary

Returns the code snippet for the form input field.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Field.Control")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Field.Control"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Field.Control"); }

Outputting the template tag

<!--@Field.Control-->

Check if string has a value

<!--@If Defined(@Field.Control)--> Let's output this tag here: <strong><!--@Field.Control--></strong> <!--@EndIf(@Field.Control)-->