News:IsPostBack

Version: - string  

Summary

Determines whether the current page is posted back or not. Returns True or False.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("News:IsPostBack")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("News:IsPostBack"); }

Outputting the template tag

<!--@News:IsPostBack-->

Check if string has a value

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