ASP.Net/Response/Encoding

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

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>