Friday, February 5, 2010

ASP.net button text to wrap to second line

Some times we have more matter to write on Asp.net Button and the button becomes longer in width.. if we make its width small then text will be truncated (complete text will not be visible). so to do this here is solution:

Lets say you want to write following line on page in this way:

Submit here if you are an
Engineer

to write text in above format in asp button write it in below format:
Submit here if you are an 
 Engineer

so the answer is use : 
 to new line in asp button

Share This!


4 comments:

Anonymous said...

I was searching this from last 1 day and finally i got answer here... thanks dear..

Sam said...

don't know why its not working for me. I am on framework 4

Albert Andrada said...

Really Nice Information,Thank You Very Much For Sharing.
Web Development Company

Carol Prom said...

Works for me in Firefox and Chrome, not IE11.

Powered By Blogger · Designed By Seo Blogger Templates