Hi everybody,
In my user control I have certain controls that I don't want to always show. So, I put them into the panel and added properties like this, for example:
[Description("Do we want to show parents information?"), DefaultValue(true), Category("User-Defined")]
public bool ShowParents
{
get { return this.pnlParents.Visible; }
set { this.pnlParents.Visible = value; }
}
However, perhaps of the panel, my labels are no longer alighned. I'm wondering if there is a better way to hide certain controls by setting some property on the page.
I can not manipulate div tag inside the server side code, any ideas?
Thanks a lot in advance.
If it's not broken, fix it until it is.
My Blog