继承是什么意思= _default [英] what is the meaning of inherits= _default

查看:96
本文介绍了继承是什么意思= _default的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请告诉我这个问题答案

推荐答案

这意味着页面继承了一个名为_default的类.如果创建mypage.aspx,则后面的代码将进入名为mypage的类.如果创建default.aspx,则它不能使用名为default的类,因为该类是保留字,因此它将创建一个名为_default的类,并且所有代码隐藏在此处.
It means the page inherits a class called _default. If you create mypage.aspx then the code behind goes in a class called mypage. If you create default.aspx then it can''t use a class called default as that is a reserved word, so it makes a class called _default instead, and all the code in code-behind goes there.


这篇关于继承是什么意思= _default的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆