Swathi Appari Swathi Appari - 9 days ago 5
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

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