ASP.NET(vb.net) Server.HtmlDecode() - Server Object - Server.HtmlDecode() : Decodes an HTML-encoded string and returns the decoded string.
ShotDev Focus:
- ASP.NET(vb.net) Server.HtmlDecode() - Server Object
Example
AspNetServerHtmlDecode.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) Me.lblText1.Text = Server.HTMLDecode("<strong>www.ShotDev.Com</strong>") Me.lblText2.Text = Server.HTMLDecode("<strong>www.ShotDev.Com</strong>") End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label><br /> <asp:Label id="lblText2" runat="server"></asp:Label><br /> </form> </body> </html>
Screenshot