Form.OnSubmit

Version: - string  

Summary

Returns the attribute value needed for <form onsubmit="">.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Form.OnSubmit")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Form.OnSubmit-->

Check if string has a value

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