Question
4
Replies
3396
Views
Posted: February 3, 2017
Last activity: February 23, 2017
Closed
Solved
Setting a label conditionally?
I want to set a label's value dynamically, based on the length of a page list. If the page list has 13 entries/records, I want the label to read "13 Years".
"X Years" where X = number of records in page list.
What's the best way to accomplish this? Is this even possible with a label or do I need to use a different control for this purpose?
***Moderator Edit: Vidyaranjan | Updated Categories***
Hi Ismar
I haven't tried this personally. But, you could use either one of these functions to get the length of a pagelist.
LengthOfPageList or SizeOfPropertyList.
You could either write some html where you invoke these functions to get the length and set it to a property or attempt to set the value in the label directly.
Hope that helps.
Bhuvana.