Results for tag ifempty
  • How to wirite if condition for GetValue
    Aleksandar Nikolić    —       —    Question

    Hello, please, can you help me, how I can write an IF condition for GetStringValue()?I cannot use Eval or something other here, just this.I should write: If this URL exist, show the arrow<%# GetStr...


  • BlogPostDate returns as False or Empty
    Mike Bilz    —       —    Question

    Hello Kentico Team,I am attempting to add a @published on@ date to my blog post transformation, but for some reason all of my attempts have returned no results.@%# IfEmpty(Eval(@BlogPostDate@), @No...


  • Eval Syntax error
    Kristopher Maier    —       —    Question

    I can get the following to work: @%# IfEmpty(Eval(@EventWebsite@), @@, @@a href=\@@ + Eval(@EventWebsite@) + @\@ class=\@applybttn\@ target=\@_blank\@@Website link@/a@@) %@I would like to also load...


  • IfEmpty in ASCX template
    Conor Dunk    —       —    Question

    Apologises if i'm covering old ground.I'm trying to use the IfEmpty method below without any success.@%# IfEmpty(CurrentDocument.GetValue(@OnlineGetQuoteLink@), @empty@, @not empty@))%@any help wou...


  • IfEmpty error when empty
    kyle shapiro    —       —    Question

    Hi everyone, I have the following line of code within one of my transformations:@%# IfEmpty(Eval(@OfficeFax@),@@,(string.Format(@{0:Fax: (###) ###-####}@, Int64.Parse(Eval(@OfficeFax@).ToString()))...