Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2011-09-14
6
301 Views
Last Modified: 2012-05-12
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
Comment
Question by:dimensionav
6 Comments
 
LVL 8

Expert Comment

by:PagodNaUtak
ID: 36540327
use "&nbsp" to add space in the html.
0
 

Author Comment

by:dimensionav
ID: 36540376
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
 
LVL 16

Expert Comment

by:disrupt
ID: 36540452
vb script does have a space function

http://www.w3schools.com/vbscript/func_space.asp
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 36540754
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
 
LVL 16

Assisted Solution

by:Easwaran Paramasivam
Easwaran Paramasivam earned 500 total points
ID: 36540781
Try &#32; instead or &nbsp;
Please do refer http://www.ascii.cl/htmlcodes.htm 
0
 
LVL 3

Expert Comment

by:ExpertLogin_890
ID: 36541720
Add "&nbsp;" when ever you need a space in html web controls and asp.net web control
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question