Solved

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

Posted on 2011-09-14
6
302 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

735 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