If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Long text in a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-04, 10:23
care99bare care99bare is offline
Registered User
 
Join Date: Sep 2004
Posts: 16
Long text in a table

I'm having a problem displaying long text in a table format. I am pulling information from an SQL database and putting it in an ASP page. First of all, my data types in SQL are TEXT, which should allow for a large number of characters (that it's somewhere over 10,000 is all i really care about). When i retrieve the data in my select statement, i found it necessary to use substrings. So, i have the query returning the first 200 characters.

The problem is, 1) i need all of the characters. I need to be able to display ALL of what's in the text field. I don't know how to do this.
2) My program is not returning results to be printed from any entries with text longer than the substring. Becuase i'm using the substring function, it should, right?
3)I need to be able to print the whole text in the table. Is there a way to make the rows expand as needed? Or will the automatically get bigger if there's text that exceeds the row length? Or will i HAVE to hardcode the height to be enough for any possible length of string?

I'm a relative beginner to ASP, and some of these things are just stumping me... i've tried posting other places, and i suppose it stumps other people too.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-04-04, 19:11
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
You key proble is that you are using text fields. I really wouldn't recommend them for a beginner. Can you store your data in varchars instead (they allow 8000 characters).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On