k2label controls do not display on compiled page

  • 11 February 2005
  • 3 replies
  • 0 views

Badge +1
when I use a k2Label I can not see it on the rendered page.
visible is set to true and I've used several fonts and colors.
The normal webcontrols label works fine.

--Alex

3 replies

Badge +8
The K2 label controls are typically used to display process or activity data fields' values. What happens when the page is initialised is that the process data fields are set to their default values (blank in the case of strings). If you have linked your label field to a data field, the label will display blank when the form is rendered, and if it has not been linked to a data field it will display blank as well. Rather use normal ASP label controls to display static labels.
Badge +3
I don't think the difference in usage intention is clear to most K2 newbies, especially given that every other K2 control that is a copy of ASP controls works the same way ASP controls does.
It might be a good idea to highlight this frustrating difference in the training materials.

Thanks
C
Badge
Thanks for clearing that up, I was dumbfounded when my k2 "labels" didn't show any text.

Reply