response.write Blank Spaces

  • Thread starter Thread starter gourav
  • Start date Start date
G

gourav

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
 
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,

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

Eliyahu
 
thanks
Yes i got the problem is not with the response.write its with the
browser.
I have solved the problem thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top