Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Access Cell properties
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Access Cell properties

 Post Reply Post Reply
Author
jimidy View Drop Down
Groupie
Groupie


Joined: 05 October 2003
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimidy Quote  Post ReplyReply Direct Link To This Post Topic: Access Cell properties
    Posted: 23 January 2004 at 10:13pm

When I try to display my text from a cell in ASP it comes out as one long batch, if i veiw it in a text area it displays breaks and lines.. 

http://cms-stu-iis.gre.ac.uk/wn008/project/site/  then click on info

Do i need to adjust the cell properties in order for it to display returns/breaks in the page as well?

Many thanks in advance..

www.srp.me.uk
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 11:48pm
Text you entered in a textbox is not "understood" by vbscript so a simple
mytext = Replace(rs("yourfield"),vbCrLf, "<br>")
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 24 January 2004 at 12:10pm
Or more accurately ...
Text entered into a text box is plain text and text line breaks (vbCrLf) need to be changed into HTML breaks (<br>).
Back to Top
jimidy View Drop Down
Groupie
Groupie


Joined: 05 October 2003
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimidy Quote  Post ReplyReply Direct Link To This Post Posted: 25 January 2004 at 4:15am

Nice one guys this worked a peach..  Also I reversed it so in the admin section it did visa versa..

Can I make java script buttons which add text easily to a text fireld like i am writing in now as well does anyone know?

Thanks again..

www.srp.me.uk
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.