This is a minor item, but one I always seem to forget, so I thought I’d throw it up here quick as a reference…
On occasion in the web, I want to hide a particular control instead of removing it. If I set this via code snippet in the onload event of the form, it’s a simple matter of just including the line <control>.Visible = False. If this is all you do, the caption of the control will still display even though the control itself is hidden. In the past, I’ve just cleared out the caption property of the control, but you can hide it by appending “_lbl” to the end of the control name.
So, along with the line <control>.Visible = False, you should also include <control>_lbl.False.
That’s all there is to it. Pretty straight-forward.
Thanks for Reading!