Solved

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

Posted on 2011-09-14
6
298 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now