Page.ClientTarget: alias : ClientTarget « Page « ASP.Net






Page.ClientTarget: alias

<%@ Page Language="vb" %>
<html>
   <head>
      <title>ClientTarget property example</title>
      <script runat="server">
         Sub Page_Load()
            Page.ClientTarget = "downlevel"
            Message.Text = "Page is set to render for the " & _
               Page.ClientTarget & " alias.<br/>"
            Message.Text &= "Supported features:<br/>"
            Message.Text &= " - JavaScript: " & _
               Request.Browser.JavaScript & "<br/>"
            Message.Text &= " - ActiveX Controls: " & _
               Request.Browser.ActiveXControls & "<br/>"
            Message.Text &= " - Frames: " & _
               Request.Browser.Frames & "<br/>"
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category