Swathi Appari Swathi Appari - 1 year ago 115
ASP.NET (C#) Question

how to show message with angle brackets using telerik radAlert

In Grid View when clicked on a row I need to show a message Using RadAlert (telerik)controls, the popup message contains angle brackets in them like

"this is <swathi> "
. But messsage is being showed as
"this is "
The string within including angle brackets are missing.

Can anyone give clue how to show pop up message including angle brackets

Answer Source

I think RadAlert tries to parse your string as a HTML string...

If that is the case, replace the < characters with the string < and > characters with >

Also, you might face other issues too, so you should escape other characters too: this question has good answers

Quoting the accepted answer:

You can use System.Web.HttpUtility.HtmlEncode() and HtmlDecode() for these purposes

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download