Home All Groups Group Topic Archive Search About
Author
6 Apr 2005 7:15 PM
Steve Houghton-Burnett via .NET 247
Hi

This is probably a really simple question, but with the asp:button control is there any way to give it multi-line text?

For example I have  text="check villa availability" and I would like the word availability to be on a second line on the button.

HELP!
--------------------------------
From: Steve Houghton-Burnett

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>VzEabC+89Uewa5+wK5lGsg==</Id>

Author
6 Apr 2005 7:28 PM
vMike
"Steve Houghton-Burnett via .NET 247" <anonym***@dotnet247.com> wrote in
message news:O$jS1ztOFHA.2144@TK2MSFTNGP09.phx.gbl...
> Hi
>
> This is probably a really simple question, but with the asp:button control
is there any way to give it multi-line text?
>
> For example I have  text="check villa availability" and I would like the
word availability to be on a second line on the button.
>
> HELP!
> --------------------------------
> From: Steve Houghton-Burnett
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>VzEabC+89Uewa5+wK5lGsg==</Id>

Try some like this

yourbuttonid.text = "Test of carriage " & chr(13) & chr(10) &  "on button"

Mike
Author
6 Apr 2005 9:22 PM
Kelly
I JUST figured this out today. (I tried Wrap="true" but that did not work
for me.)

Drop this in your asp:textbox tag

textmode="MultiLine"

Ex: <td bgcolor="blue" width="50%"><asp:textbox  textmode="MultiLine"
id="txtRisks" runat="server"  width="340"  height="75"></asp:textbox></td>


"Steve Houghton-Burnett via .NET 247" <anonym***@dotnet247.com> wrote in
message news:O$jS1ztOFHA.2144@TK2MSFTNGP09.phx.gbl...
> Hi
>
> This is probably a really simple question, but with the asp:button control
is there any way to give it multi-line text?
>
> For example I have  text="check villa availability" and I would like the
word availability to be on a second line on the button.
Show quote
>
> HELP!
> --------------------------------
> From: Steve Houghton-Burnett
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>VzEabC+89Uewa5+wK5lGsg==</Id>
Author
6 Apr 2005 9:24 PM
Kelly
ACK! I got ahead of myself. Sorry, I just noticed you're asking about a
button, not textbox. Nope, I never figured the button word-wrap out. So
sorry!!!

"Steve Houghton-Burnett via .NET 247" <anonym***@dotnet247.com> wrote in
message news:O$jS1ztOFHA.2144@TK2MSFTNGP09.phx.gbl...
> Hi
>
> This is probably a really simple question, but with the asp:button control
is there any way to give it multi-line text?
>
> For example I have  text="check villa availability" and I would like the
word availability to be on a second line on the button.
Show quote
>
> HELP!
> --------------------------------
> From: Steve Houghton-Burnett
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>VzEabC+89Uewa5+wK5lGsg==</Id>

AddThis Social Bookmark Button