
----------------------------------------------------------------------
为什么我在也面上放上了服务器控件,在beside的.CS文件里面是找不到这么个服务器控件的 ?注:是在
MvcApplication里面的
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="MvcApplication2.Views.Home.Index" %>
问题出在CodeBehind这里,将"CodeBehind"改成"CodeFile"就OK了,为什么CodeBehind就不可以呢?在MVCMvcApplication里面为什么要用CodeBehind呢 ?