ASP.Net/Response/Status

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

Sending status (VB.net)

   <source lang="csharp">

<%@ Page Language="vb" %> <html>

  <head>
     <title>Sending status in ASP.NET</title>
     <script runat="server">
        Sub Page_Load()
           Response.StatusCode = 542
           Response.StatusDescription = "Server Error - The code is the answer."
           Response.End()
        End Sub
     </script>
  </head>

<body>

  <asp:label id="Message" runat="server"/>

</body> </html>

      </source>