<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
2017-07-21 11:38
465 查看
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<%@ Page Language="C#" AutoEventWireup="true" Codebehing="Login.aspx.cs" Inherits="Login" %>
@page表示所使用的是page页面,也就是所谓的aspx页面。
<%@ Page Language="C#" AutoEventWireup="true" Codebehing="Login.aspx.cs" Inherits="Login" %>
@page表示所使用的是page页面,也就是所谓的aspx页面。
Language="C#" 代表编程语言为C#
AutoEventWireup="true" 代表是否自动关联某些特殊事件 自动绑定Page_*事件方法
CodeFile="Default.aspx.cs" 代表代码在那个文件中 (逻辑代码)
Inherits="Login" 代表这个页面的默认名称是Login codebehing指的代码隐藏,也就是一些逻辑代码被放在了teamp.aspx.cs中,在生成网站时该CS文件会自动生成dll文件,达到了看不到源码的目的。提前了效率。一般该名字的命名为同张aspx页面后加.cs。也就是说cs才是该文件真正的类型。 autoeventwireup指的是是否页面自动事件回传。 codefile 指定指向页引用的代码隐藏文件的路径。此属性与 Inherits 属性一起使用可以将代码隐藏源文件与网页相关联。此属性仅对编译的页有效
相关文章推荐
- 关于 aps.net<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 的认识
- 菜鸟关于 aps.net<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 的认识
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>
- <%@ Page language="c#" Codebehind="Main.aspx.cs" AutoEventWireup="false" Inherits="Vod.WebForm1" %>
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="EmptyProjectNe
- <%@ page language="C#" autoeventwireup="true" inherits="index, App_Web_vsb3n 生成网站后,发布到网站上就提示这个错误
- 分析器错误 <%@ Application Codebehind="Global.asax.cs" Inherits="erfang.web.Global" Language="C#" %>
- <%@ Application Codebehind="Global.asax.cs" Inherits="XXX.MvcApplication" Language="C#" %>
- ASP.NET 调试出现<%@ Application Codebehind="Global.asax.cs" Inherits="XXX.XXX.Global" Language="C#" %>
- aspx头部代码<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ceshi.aspx.cs" Inherits="SM_ceshi" %
- <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
- <%@Page%>中的Codebehind、AutoEventWireup、Inherits有何作用?
- 回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。
- 回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证。
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- <%@ Application Codebehind="Global.asax.cs" Inherits="FS.JYPEIS.WeCharReserve.WebApiApplication" Lan
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- 声明中"AutoEventWireup"、"Codebehind"、"Inherits"分别表示什么意思?
- 回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true"
- [网络收集]回发或回调参数无效。在配置中使用 <pages enableEventValidation="true"/> 或在页面中使用 <%@ Page EnableEventValidation="true" %> 启用了事件验证