Bilgisayar Bölümü ASP Kod ve Script Arşivi


How to display 1ast 100 characters from database

Author:
vincent

Date:
4/16/2004 9:45:17 PM

Subject:
how To display 1st 100 characters from database

Message:
hi!! does anyone knows how To display the first 100 characters of a database record? normally i would use <%=rs(""recordName"")%> To retrieve And display a record And it displays the entire field content, Is there anyway To limit the number of characters To display??? pls advise.. thanks!!

Author:
Peter Roome

Date:
4/16/2004 10:09:34 PM

Subject:
Re: how To display 1st 100 characters from data...

Message:
You cound Do the following In your query

Select Left(field,100) As short_field FROM....

Or just

Response. Write Left(rs(""field""),100)

Hope that helps :)




"

ASP Kitabı

 

Faydalılar: Altın Fiyatları |Hediye Kolye | pırlanta fiyatları
Ana Sayfa  Sık Kullanılanlara Ekle   admin[at]bilgisayarbolumu.com | © 2006 - 2020 Bilgisayarbolumu.com