Click here to Skip to main content
15,887,585 members
Articles / Web Development / ASP.NET

Truncating a text string in ASP.NET to fit within a given pixel width

Rate me:
Please Sign up or sign in to vote.
4.75/5 (8 votes)
8 Sep 2010CPOL4 min read 42.9K   314   31  
How to truncate a text string in ASP.NET to make it fit within a given width specified in pixels.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Contractor
Egypt Egypt
My name is Waleed Eissa and I'm a software developer from Cairo, Egypt. I spent 7 years developing software for the banking industry, but has changed focus in recent years to Web development. I specialize in Microsoft technologies, esp. ASP.NET and C#, and am passionate about everything web. My main interests are user experience design (UX), performance tuning and scalability.

Website: http://www.waleedeissa.com
Blog: http://waldev.blogspot.com

Comments and Discussions