-
在ASP.NET中Web编程时,aspx Web 窗体的@page 指令有三个属性(Inherits、CodeFile、CodeBehind),我们在添加aspx页面时,会默认在代码中使用CodeBehind。那么,CodeFile与CodeBehind的区别究竟有哪些呢?
一、CodeBehind
1、使用方式
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="index.aspx.cs" Inherits="Community.IndexHomePage.index" %>
2、项目中的所有的Cod...阅读全文