Use namespace System.Web.HttpUtility
VB.NET
Dim mystring as string =”Tom & Jerry”
Response.Write (HttpUtility.HtmlDecode (mystring))
C#
string mystring=”Tom & Jerry”;
Response.Write (HttpUtility.HtmlDecode (mystring));
Use namespace System.Web.HttpUtility
VB.NET
Dim mystring as string =”Tom & Jerry”
Response.Write (HttpUtility.HtmlDecode (mystring))
C#
string mystring=”Tom & Jerry”;
Response.Write (HttpUtility.HtmlDecode (mystring));
Share with