zoukankan      html  css  js  c++  java
  • PageBaseType属性的功用

    在web.config中经常能看到如下类似语句:<pages theme="Default"   pageBaseType="VS.Facade.PageBase,WebFacade"></pages>
    微软官方解释pageBaseType是:指定.aspx页默认继承的代码隐藏类和程序集
    网上有段关于其用法的英文解释:
            VS.NET uses code-behind (unless you avoid it, which I don't recommend), and therefore each ASPX page is specified to inherit from code-behind. The code-behind page specifies System.Web.UI.Page, so you must change it. The web.config setting is really only useful for non-code-behind pages. Its a great way to get ASMX pages to automatically inherit your base!
    翻译下来大致意思是:
            VS.Net使用后台代码(除非你不用它,但我不建议这么处理), 因此每个aspx页面都继承后台代码文件. 后台代码页面类继承System.Web.UI.Page.因此你必须手工修改它. web.config设置只对那些无后台代码的页面有效,它极大地方便于应用ASMX页面类来自动继承你在web.config中设置的基类.

  • 相关阅读:
    少儿编程之图形编程
    少儿编程是什么?要学吗?如何学?
    AlloyDesigner 使用
    轮播总结
    git实用攻略
    git subtree用法(转)
    vue 插值,v-once,v-text, v-html
    webpack的学习准备工作
    webstorm中github的配置
    less 安装和webstorm的使用
  • 原文地址:https://www.cnblogs.com/Fooo/p/6678163.html
Copyright © 2011-2022 走看看