Suppressing content (VB.net) : Content « Response « ASP.Net






Suppressing content (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>Suppressing content in ASP.NET</title>
      <script runat="server">
         Sub Page_Load()
            Response.Write("java2s.com!")
            Response.SuppressContent = True
            If Response.SuppressContent Then Response.Close()
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category

1.Checking Content Type (VB.net)