Using the Page Directive: Strict : Import Directives « Page « ASP.Net





Using the Page Directive: Strict

<%@ Page 
    Language=VB
    EnableSessionState=false 
    Debug=true 
    Buffer=true
    Explicit=true
    Strict=false
    Description="Sample Page directive page."
%>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)

End Sub
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)

End Sub
</script>
<HTML>
<HEAD>
<TITLE>Using the Page Directive</TITLE>
</HEAD>
<Body LEFTMARGIN="40">
<form runat="server">
<asp:label
    id="lblDataEntered" 
    runat="server"
/>
<BR><BR>
Enter your Name:<BR>
<asp:textbox 
    id="txtName" 
    columns="25"
    maxlength="30"
    runat=server 
/>
<BR><BR>
<asp:button 
    id="butOK"
    text="  OK  "
    onclick="SubmitBtn_Click" 
    runat="server"
/>
</Form>
</BODY>
</HTML>
           
       










Related examples in the same category

1.Using the Page Directive: Language
2.Using the Page Directive: EnableSessionState
3.Using the Page Directive: Debug
4.Using the Page Directive: Buffer
5.Using the Page Directive: Explicit
6.Using the Page Directive: Description
7.Import Directives in a page