Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2003, 08:55 AM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default text vs. textarea

When retrieving info for editing, how does a text box differs from a textarea box?

The following code retrieves information just fine, but with single line:
<input name="Keywords" type="text" value="<% = rsVIPP("Keywords") %>" size="50" maxlength="1000">

however the same thing doesn't work with multi line. Why?
<textarea name="Keywords" cols="50" rows="10"><% = rsVIPP("Keywords") %></textarea>

Thanks.
M
 
Old September 26th, 2003, 03:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

You may find that you have a carriage return in your data, which will need to be converted to a <br> or a <p> in HTML for the formatting to work.
 
Old September 26th, 2003, 04:59 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think I know what you are talking about, but I am not sure what you mean. I have extensive keywords in each field that runs several lines. I might have brought these carriage returns over from notepad's Word Warp(?).

So would I need to put a <br> at the end of the line in the Access field, or place special code into the form? Or what is the solution for it?
 
Old September 26th, 2003, 05:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you provide some more clarity on what issue you are experiencing ? If it is the wrapping of text then there is a NOWRAP attribute on some HTML elements, you can also use the REPLACE function to replace the Char codes 10 and 13.
 
Old September 27th, 2003, 11:17 AM
Authorized User
 
Join Date: Sep 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I seem a little lost here on what is going on. But I had a problem that my database wouldn't take my information because I was letting the page do default wrapping. You might want to try doing a wrap="virtual" or wrap="physical" in your textarea tag. I did this on mine and I was to post to the database AND it wrapped in the textarea box.

 
Old September 29th, 2003, 07:33 AM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the advice. Virtual Wrap did not solve the problem but NOWRAP did. Now the text appears in the textarea box.
Here is what I did:
<textarea name="Keywords" cols="50" rows="5" wrap="nowrap"></textarea>

Thanks again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXTarea to text file Apocolypse2005 Javascript 1 January 19th, 2007 05:52 AM
saving text from ASP textarea to Access arabuafef Access ASP 3 December 26th, 2006 04:09 AM
Align text in textarea crmpicco HTML Code Clinic 27 June 14th, 2005 08:26 AM
How to insert text into panel with out textarea JOptionPane Java GUI 5 May 6th, 2005 03:35 PM
problem displaying text fron Db to textarea mail4nrs Classic ASP Databases 4 August 20th, 2004 08:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.