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!


5 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

Unknown said...

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

Carol P said...

Works for me in Firefox and Chrome, not IE11.

Anonymous said...

Good post. I learn something totally neew and challenging on websites
I stumbleupon everyday. It will always be helpful to read
conteent from other writers and practice a little something from their websites.

Powered By Blogger · Designed By Seo Blogger Templates