How to display only the fist 50 characters of a record, then click to expand the table
Posted on 2016-10-04
On my web page I'm displaying database records. One column is named "Comments" and it is varchar(MAX) data type in the SQL Server database.
The table cell becomes too big when the Comments field contains too many characters. Is it possible to display only the first 50 characters of each record, then when the TD is clicked, it expands and shows the full record? When a different record is clicked it collapses to show the first 50 characters only.
My page is written is Classic ASP.
Thank you for your help.