Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Help Nedded In Breaks.........
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CooLGiL
Junior Member

126 Posts

Posted - 06 May 2002 :  16:19:54  Show Profile  Send CooLGiL an ICQ Message
Im Working On An Apllication Of Myn, I'm Stuck In The Area Of

Inserting Breaks.

hmmm, How Shell I Explain...

Like Sitnz When I Insert An Break, When I Click Enter, After Im

Sending The Messege To The DataBase The Breaks Are Gone!.

What Im Trying To Ask Is How Can I Do That When I Click Enter Or

Double Space In My Application And It's Sending Herself In The

DataBase I Want When Im Showing The DataBase That He Will Show The

Breaks.

Now One More Problem And We Done :), Loke Snitz When Im Putting An

Tag Like , It Will Put An Image.

I Want Some Codes And Explains Dont Point Me To Other Site!.

Thanks All, For Your Ears And For Your Eyes!.

Hope for Help Soon,

Gil Binder Known As CooLGil Or CooLMaN



Nikkol
Forum Moderator

USA
6907 Posts

Posted - 06 May 2002 :  17:42:40  Show Profile
quote:

Im Working On An Apllication Of Myn, I'm Stuck In The Area Of

Inserting Breaks.

hmmm, How Shell I Explain...

Like Sitnz When I Insert An Break, When I Click Enter, After Im

Sending The Messege To The DataBase The Breaks Are Gone!.

What Im Trying To Ask Is How Can I Do That When I Click Enter Or

Double Space In My Application And It's Sending Herself In The

DataBase I Want When Im Showing The DataBase That He Will Show The

Breaks.


Try replacing either all vbCrLf or vbNewLine with <br>, so it would look something like:
set myText = Request.Form("myText")
myText = Replace(myText,vbNewLine,"<br>")

Then insert that value into the database. When you display the value in html, it should appear the way you want. If you need to bring that value back into a textarea, you will need to do the reverse (replace <br> with vbNewLine).
quote:


Now One More Problem And We Done :), Loke Snitz When Im Putting An

Tag Like , It Will Put An Image.



You could take just a little bit of time and look at how the snitz code does it. But again, you are replacing values, so it would be something like:
set myText = Request.Form("myText")
myText = Replace(myText,"",""">")

Nikkol
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07