Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,
In my web application, i am using link button for showing some name and i want to set the length of that link button to 10 or 15, dont want to exceed the length over that, i have set the width and height but its not use full , so please help me .
Thanking you.
Posted

1 solution

You can just display the first 15 characters of the link text using the substring function like following.
YourLinkButton.Text = YourLinkText.Substring(0, 15);
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900