473,504 Members | 13,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

response.write Blank Spaces

hi,

I am new to c#.
When we write a string with spaces in httpresponse.write then it trims
the string.
Is there a way by which the spaces are not trimmed when i output the
string to the web page.

any response will be helpful.

Regards,
Gourav Sinha

Mar 9 '06 #1
4 4485
What do you mean "trimmed"? The browser does not display extra whitespace.
Are you sure the server is trimming the text or is the browser just not
displaying the content?

"gourav" <go*********@gmail.com> wrote in message
news:11**********************@j52g2000cwj.googlegr oups.com...
hi,

I am new to c#.
When we write a string with spaces in httpresponse.write then it trims
the string.
Is there a way by which the spaces are not trimmed when i output the
string to the web page.

any response will be helpful.

Regards,
Gourav Sinha

Mar 9 '06 #2
Gourav,

The spaces are not trimmed, they are not rendered by the browser in the way
you expect. Try using non-breakable spaces &nbsp;

Eliyahu

"gourav" <go*********@gmail.com> wrote in message
news:11**********************@j52g2000cwj.googlegr oups.com...
hi,

I am new to c#.
When we write a string with spaces in httpresponse.write then it trims
the string.
Is there a way by which the spaces are not trimmed when i output the
string to the web page.

any response will be helpful.

Regards,
Gourav Sinha

Mar 9 '06 #3
thanks
Yes i got the problem is not with the response.write its with the
browser.
I have solved the problem thanks.

Mar 9 '06 #4
Eliyahu,
Yes. u r right. that was the problem .
thanks anyways

Mar 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
6671
by: Jean-Marc Molina | last post by:
Hello, I can't find a way to execute a Windows application, whose directory path contains blank spaces, from a PHP script. I also wonder if the problem happens under Linux and other OS. ...
6
4262
by: Ruben | last post by:
Hello. I am trying to read a small text file using the readline statement. I can only read the first 2 records from the file. It stops at the blank lines or at lines with only spaces. I have a...
13
4719
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
5
48268
by: mark | last post by:
how to print, say 50 blank spaces, or say 20 blank spaces ? I wanted use such blank spaces that can be output in a program at predetermined places when printing with "cout".
1
4049
by: Danny | last post by:
Given this: "*" the pattern to remove the htnl code between brackets, how can I remove a series of spaces and just make one space. like here is a series of blank...
4
11386
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
8
518
by: Mangler | last post by:
Here is an easy one for the pros, yet hard for me (newbie). If my recordset is empty I want to write "Not Complete" and if there is a value, I want to write the value. Can someone tell me what I...
3
3763
by: ShaeMills via AccessMonster.com | last post by:
In my table I imported from .txt, one of my columns has blank spaces. The column is as follows, how do I eliminate the blank spaces in between the second and third, and fifth and sixth digits? ...
1
3298
by: maryanncanor | last post by:
Hi everyone, My problem is whenever I export a report to a textfile. The output textfile have blank spaces. Here is my query: SELECT ( & '|' & & '|'...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.