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

How to add an HTML blank space from asp.net script

I need to add multiple blank spaces in an html control from vb.script, I have tried to add a " "  in a loope but HTML iterpret them as a only white space....

Regards
0
dimensionav
Asked:
dimensionav
2 Solutions
 
PagodNaUtakCommented:
use "&nbsp" to add space in the html.
0
 
dimensionavAuthor Commented:
I have tried adding it as a part of a string from the script but asp.net interprets separated the blank html space:

instead of show this   shows  
0
 
disruptCommented:
vb script does have a space function

http://www.w3schools.com/vbscript/func_space.asp
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Easwaran ParamasivamCommented:
If   is not working try below workaround.

<span style="padding-left:20px">This line starts after some blank space at left</span>

<span style="padding-right:20px">This line endsafter some blank space at right</span>

0
 
Easwaran ParamasivamCommented:
Try &#32; instead or &nbsp;
Please do refer http://www.ascii.cl/htmlcodes.htm 
0
 
ExpertLogin_890Commented:
Add "&nbsp;" when ever you need a space in html web controls and asp.net web control
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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