Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unwanted Trimmed Spaces
Message
General information
Forum:
Visual C++
Category:
Other
Miscellaneous
Thread ID:
00254914
Message ID:
00255356
Views:
18
Francis,

Either of these should work.
1. Response.Write "< PRE >"&rs("field1")&"< /PRE >< BR >"

2. sayit=rs("field1")
sayit=Replace(sayit," "," & n b s p; ")
Response.Write ""&sayit&"< BR >"

1. Will out put as text. You don't control what font or size.

2. Will allow you to control the font and stuff.

Note:
For speed you need to try and NOT have straight HTML and Script mixed together.

Example slower:
     < %
       do while not.rs 
          response.write rs("field1")%>
          < BR >
          < %rs.movenext 
        loop   
      % >
Example slower:
     < %
       do while not.rs 
          response.write rs("field1")&"< BR >"
          rs.movenext 
        loop   
      % >
In other words do the whole page inside the script delimiters with response.writes. It get to be a pain sometimes getting "" correct, but it speeds the page up a bunch.


HTH

Jeff
>The string is stored in a sql table. this is how i code it:
>
>(start of server side scripting)
>while not rs.eof
> response.write(rs("field1)) (end of server side scripting)
>
> (html line break tag goes here to
> advance printing to next line)
>
>(start of server side scripting)
>
> rs.movenext
>wend
>(end of server side scripting)
>
>where field1 contains the mentioned string: "my01234567890field"
>Note: numbers indicate blank spaces between the words
>
>When this script executes the result is: "my field"
>
>Thanks for your help.

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform