The tip shows how to display ASP.NET button with Multiline text. This could be a rare scenario but still you can achieve it using following code.
Designer:
<asp:Button ID="btnTextasMulLines" runat="server" Text="Button Text
in
Multiple lines" Width="150px" Height="100px" />
<br />
<asp:Button ID="btnTextasMulLinesCB" runat="server" Width="150px" Height="100px" />
Code:
protected void Page_Load(object sender, EventArgs e)
{
btnTextasMulLinesCB.Text = "Button Text" + Environment.NewLine + "in" + Environment.NewLine + "Multiple lines" + Environment.NewLine + "from Codebehind";
}
Output:
Note: Its works in most of the browsers but for compatibility issue Please test the functionality with all browsers.