For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > May 2007 > Creating a Multi-Line Button Control









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Creating a Multi-Line Button Control
Nathan Sokalski

2007-05-30, 10:10 pm

I have a Button control whose text property is "Move To Archives". Because
this makes a relatively wide Button when the text is all one line, I want to
put a line break between the words "Move To" and "Archives". However, if I
specify the Text property as "Move To<br/>Archives" the "<br/>" simply shows
up on the Button. Is there any simple way to make a Button control's Text
property multi-line? (NOTE: I am writing my code using VB.NET and ASP.NET
2.0) Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/


bruce barker

2007-05-31, 4:23 am

html buttons don't support markup. you can use an image button or a link
button.


-- bruce (sqlwork.com)

Nathan Sokalski wrote:
> I have a Button control whose text property is "Move To Archives". Because
> this makes a relatively wide Button when the text is all one line, I want to
> put a line break between the words "Move To" and "Archives". However, if I
> specify the Text property as "Move To<br/>Archives" the "<br/>" simply shows
> up on the Button. Is there any simple way to make a Button control's Text
> property multi-line? (NOTE: I am writing my code using VB.NET and ASP.NET
> 2.0) Thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com