• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

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.
0
emi_sastra
Asked:
emi_sastra
1 Solution
 
vb_jonasCommented:
Set AutoSize to false.
0
 
debuggerauCommented:
It may look like its disappearing, but have you set the background and foreground colors?
0
 
vb_jonasCommented:
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.
0
 
Pratima PharandeCommented:
<asp:Label ID="Label1" runat="server" Text="&nbsp"   BackColor="Blue"></asp:Label>
0
 
emi_sastraAuthor Commented:
Hi Jonas,

You have solve my problem.

Thank you.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now