Link to home
Start Free TrialLog in
Avatar of emi_sastra
emi_sastra

asked on

How to show label with empty space with white back ground with specific width?

Hi,

Usually when show label with empty space then the label like disappear from form.

How to solve this problem?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of vb_jonas
vb_jonas
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It may look like its disappearing, but have you set the background and foreground colors?
The label disappears completely if its empty, when AutoSize is true, no matter what the background color is. The control exists, but does not show.
Avatar of Pratima
<asp:Label ID="Label1" runat="server" Text="&nbsp"   BackColor="Blue"></asp:Label>
Avatar of emi_sastra
emi_sastra

ASKER

Hi Jonas,

You have solve my problem.

Thank you.