<asp:HyperLink ID="TestHyperLink" runat="server"></asp:HyperLink>
我正在使用上面的超链接。我只是用以下代码设置文本:
string textFromUser = "This is test's.";
string encodedText=HttpUtility.HtmlEncode(textFromUser);
TestHyperLink.Text = encodedText;
TestHyperLink.ToolTip = encodedText;
问题在于超链接的文本是正确的,但工具提示显示的是编码字符。
![enter image description here](https://istack.dev59.com/x5BH9.webp)