Clearing buffered output (VB.net) : Buffer « Response « ASP.Net






Clearing buffered output (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>Clearing buffered output in ASP.NET</title>
      <script runat="server">
         Sub Page_Load()
            Response.Write("This content will not be seen.")
            Response.ClearContent()
            Message.Text = "Content written with <i>Response.Write</i> was cleared."
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category

1.Buffering Output (VB.net)