Seph626
Seph626

Reputation: 1

Double Space text on button from code behind C#

I need to add text on a asp.net button depending on a virtual keyboard status

if the keyboard is visible the button text must be Hide Keyboard and if the Keyboard is not visible the text must be Show Keyboard. the button width is too short for the text i need to do a double space text inside the button i had already tried with

1-

2- </br>
3- /n
4-adding a literal br

and nothing works can somebody help me with this?

Thanks in advance

Upvotes: 0

Views: 420

Answers (1)

Sebastian Siek
Sebastian Siek

Reputation: 2075

If you want multiline text in asp.net assign text in code begind. it's not pretty but it works well.

button.Text = "Line1" + Environment.NewLine + "Line2";

Upvotes: 1

Related Questions