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

Home
ASP.Net
1.ADO.net Database
2.Ajax
3.Asp Control
4.Collections
5.Components
6.Data Binding
7.Development
8.File Directory
9.HTML Control
10.Language Basics
11.Login Security
12.Mobile Control
13.Network
14.Page
15.Request
16.Response
17.Server
18.Session Cookie
19.Sitemap
20.Theme Style
21.User Control and Master Page
22.Validation by Control
23.Validation by Function
24.WebPart
25.WPF
26.XML
ASP.Net » Page » Import Directives 
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.