ItemPublisher:Edit.Form.Begin

Version: - string  

Summary

Returns the form method start code like this:

<form method="post" id="ItemPublisherFormSave" name="ItemPublisherFormSave" enctype="multipart/form-data" onsubmit="s=function(e){e.elements['FormCH1_h'].value='b83a4a2550903ed33169d71b8ad00920';e.elements['_sys_to_email'].value='';e.setAttribute('action', 'http://yourwebsite.dk/Default.aspx?ID=14863&PID=16545&cmd=edit&itemId=My_Item_Type:2');return true};return s(this)">

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("ItemPublisher:Edit.Form.Begin")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("ItemPublisher:Edit.Form.Begin"); }

Outputting the template tag

<!--@ItemPublisher:Edit.Form.Begin-->

Check if string has a value

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