Form.Action

Version: - string  

Summary

Returns the form action attribute.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Form.Action")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Form.Action"); }

Outputting the template tag

<!--@Form.Action-->

Check if string has a value

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