Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top