navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

limit charater return in field

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> limit charater return in field
Page: [1]
 
Tim 111

 

Posts: 58
Joined: 6/16/2004
From: Chester, UK
Status: offline

 
limit charater return in field - 7/4/2004 1:31:18   
I have a long text field which on an introductory page, I want to limit the display to say, 200 characters. If the reader wants to see more details, they can go to another page and see the full text. Does someone know how this can be achieved?
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: limit charater return in field - 7/4/2004 1:36:49   
Use the code :

<%=Left(INPUT, 200)%>

Then link to the source

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Tim 111)
Tim 111

 

Posts: 58
Joined: 6/16/2004
From: Chester, UK
Status: offline

 
RE: limit charater return in field - 7/4/2004 3:37:24   
quote:

<%=Left(INPUT, 200)%>



Err, not quite sure what you mean there Spooky?

(in reply to Spooky)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: limit charater return in field - 7/4/2004 3:55:24   
If you have a really long string - from a database, then youll insert that part as "INPUT"

So, if you are using the DRW, itll look like :

<%=Left(FP_Field(fp_rs,"Field"), 200)%>

If using a normal asp rs, it may look something like :

<%=Left(rs("Field"), 200)%>

That code will "write" the "left" 200 characters of the input string.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Tim 111)
Tim 111

 

Posts: 58
Joined: 6/16/2004
From: Chester, UK
Status: offline

 
RE: limit charater return in field - 7/4/2004 16:15:08   
Spooky, you're a gentleman and quite obviously a scholar.
Cheers
Tim

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> limit charater return in field
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts