Asp.net Page指令

Page指令为编译器编译页面时使用的指令

指令的格式为

<%@ [Directive] [Attribute=value]%>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Listing03-02.aspx.cs" Inherits="AspnetStudy._03.Listing03_02" %>

中的CodeBehind用于指定隐藏代码页面,而Inherits用于指定编译后类的全名,其中AspnetStudy._03为命名空间的名字,而Listing03_02为类的名字

image

原文地址:https://www.cnblogs.com/xqlcrystal/p/5280866.html