faqts : Computers : Programming : Languages : Asp : ASP/VBScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 12 people (50%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

how do i display just the first few lines of a long string, with a link to the rest, i.e. "more..."

Sep 4th, 2002 14:07
Robin Paardekam, mick elliot, http://www.paardekam.nl


To display omly the first 50 characters of a certain string, use the 
following code:
<%
Response.Write LEFT(strVariable,50) & "... "
Response.Write "<A HREF=""ThePage.asp?id=" & TheID & """>" & vbCrLf
%>
Try it, you'll be amazed! ;-)
Good luck!
Robin Paardekam
http://www.paardekam.nl



© 1999-2004 Synop Pty Ltd