Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 11: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, 20:11
rokslide rokslide is offline
Coffee Minion
 
Join Date: Nov 2003
Location: Sydney
Posts: 1,515
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

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