/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Text layout after retrieving it from a dat~
Fra : Jim


Dato : 19-03-01 17:20

Im fairly new to ASP, Normally I try to learn everything myself, and also
figure out problems, but I am a very visual kinda guy, so the real hardcore
coding stuff really is something I dont understand, and probably never will.
But I have learned some stuff,
I am building my own messagboard, and for now its going fine. Accept for 1
problem.

When someone submits a post to the Access 2000 database, the datavse does
not save layout stuff like 'returns'. So eventually, in the message overview
page, the message will appear as 1 big block of text.

example:
__________________________________________________________
In the post window I type text like this., and then hit enter to start a new
line.
This text now appears on a new line.
__________________________________________________________

But In the message window it will look like this after posting:
__________________________________________________________
In the post window I type text like this., and then hit enter to start a new
line.This text now appears on a new line.
__________________________________________________________

How can i make sur that when I hit 'enter' in my posts, That the enter
actually appears in the message??


greets Jim



 
 
Heine Storgaard (19-03-2001)
Kommentar
Fra : Heine Storgaard


Dato : 19-03-01 18:14

Hey Jim...

You can use the function called

Response.Write Replace(string, Chr(10), "<br>")

Hope it can help you...

Heine





Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408868
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste