Show item by document type Options
Simm
Posted: Thursday, February 21, 2008 2:43:45 PM

Rank: Fanatic

Joined: 7/22/2006
Posts: 253
Location: Randers, Denmark
Is it possible to do something like this (pseudocode):

if (Document.DocumentType.Alias == "Mainpage")
{
- show control 1
- show control 2
} else
{
- show control 3
- show control 4
}

Currently I do a lot of

if (!string.IsNotNullOrEmpty(node.getProperty("propertyid").Value)

or

if (DropDownListTest.Item.Count > 0) etc.

and thats not very nice

Best Regards
Simon

Simm.dk - My base on the web - proud Umbracian since 2.0 Beta
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.