Solved

Wrapping text in an <asp:button>

Posted on 2004-04-20
2
828 Views
Last Modified: 2006-11-17
Is it possible to wrap text in an <asp:button>?

So far I've tried:

btnAssign.text = "Assign<br>Referrals"

btnAssign.text = "Assign\nReferrals"

btnAssign.text = "Assign\rReferrals"

The button comes up with the text exactly as
shown above.

Thanks.
0
Comment
Question by:JeffDrummond
2 Comments
 
LVL 29

Accepted Solution

by:
David H.H.Lee earned 250 total points
ID: 10872280
JeffDrummond,
Here's the solution :

[c#]
btnAssign.text = "Assign\nReferrals"

[vb.net]
btnAssign.text = "Assign" & vbCrLf & "Referrals"
0
 

Author Comment

by:JeffDrummond
ID: 10872484
x_com:

Just what I needed.

Thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now