<%@ Page Language="vb" %> <html> <head> <title>Checking Content Type in ASP.NET</title> <script runat="server"> Sub Page_Load() Message.Text = "Current content type is " & _ Response.ContentType & "</br>" End Sub </script> </head> <body> <asp:label id="Message" runat="server"/> </body> </html>