You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
In this article you will learn about the Page Directive in ASP.NET
The page directive is the first component inside an ASP web form. It is used to provide various instructions to the server, It provides the following information:
For a number of requirements we are using the page directive.
When we are adding a page to our project the page will contain the following default properties.
We can set the page directive as follows:Let's explain each attribute one by one with its role.LanguageThe language property specifies the language you are doing the project in. Your Language could be "C#" or "VB".For example, Language="C#".AutoEventWireupAutoEventWireup is a Boolean property indicating whether or not the ASP.NET page label event is automatically wired with the respective events.The Page Label events is the event of a page such as the following:
page Load,Preinit,init,and so on.
This property is by default is set to true.
eg-AutoEventWireup="true"
CodeFileA webpage contains mainly the following two parts.
Getting Started with ASP.NET 4.5 Web Forms and Visual Studio 2013