Question What is the equivalent of " "

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I m trying to set innertext of href in code behind. I would like to put space between 2 words and I wonder is there an equivalent of   in vb.net?

Here is my aspx:

<a href="#" class="btn1 approve" id="fancybutton6" runat="server">Check Send</a>

Here is code behind:
fancybutton6.InnerText = "Uncheck Send"
 
The reason that you need to use   in HTML is that a browser will only show a single space for a series of space characters of any length. If you want the browser to display multiple adjacent spaces then you need to use  . If you only want to display one space then you simply use a space. If you want multiple spaces then you use  . Whether it's in the ASPX page or the code-behind is irrelevant.
 
Back
Top