Question

I want to break line in persian text of tool tip,so I used this in ASP.NET:

<asp:TextBox ID="cut" runat="server" ToolTip="یک ;13#& دو"/>

but in returned html tool tip text changing to:

title="یک ;13#&amp; دو"

that cause line break to not work.How can I fix this?

Was it helpful?

Solution

Are you sure you're typing &#13; correctly? I have added a text box and set a line break in its tooltip and it worked correctly: (ASP.Net 4.0 Webforms)

<asp:TextBox ID="TextBox1" runat="server" ToolTip="خط اول &#13; خط دوم"></asp:TextBox>  

Copy and paste the line above and it should work correctly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top