I have this Label on WebForm.aspx, and as a default no text in it:
<p>Content 1</p>
<asp:Label ID="messageStatus" runat="server" Text="" CssClass="messageStatus"></asp:Label>
<p>Content 2</p>
Then on WebForm.aspx.cs I have a send mail function that will display content in "messageStatus.Text" depending on if sending message succeed or not:
messageStatus.Text = "Message sent!";
// Or
messageStatus.Text = "The message could not be sent!";
The problem is that the Label control does add some extra space even when there's no text set to it.
Is there some type of other control I can use that doesn't take up any space on the page as long as it doesn't have any text? Or some other way to get around it even when using Label control.
The idea is that I don't want any extra space be ...
Go to the complete details ...