Displaying Encoding (VB.net) : Encoding « Response « ASP.Net






Displaying Encoding (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>Displaying Encoding in ASP.NET</title>
      <script runat="server">
         Sub Page_Load()
            Message.Text = "Current encoding is " & _
               Response.ContentEncoding.EncodingName & "</br>"
            Message.Text &= "Current encoding IANA name is " & _
               Response.ContentEncoding.WebName & "</br>"
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category