Click here to Skip to main content
16,016,306 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi I am Yogesh I want to know how to wrap text on a LinkButton with a fixed width.
Is there any way to do this? When I dynamically display the text on it, the text is not getting wrapped, it displays in a single line and thereby auto increasing the width of LinkButton. LinkButton should be any of HTML: a control or ASP link contol.
Please suggest the solution if any, or suggest some different solutions. with eg:
Posted
Updated 27-Aug-11 21:05pm
v2
Comments
hitech_s 27-Aug-11 4:36am    
try with width for linkbutton

1 solution

Apply style to your Link Button as below.

ASP.NET
<asp:linkbutton id="LinkButton1"
Text="Click Me"
style="width:20px;word-wrap:break-word"
OnClick="LinkButton_Click"
runat="server"/>
 
Share this answer
 
v3

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