首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

this.GetType()的有关问题

2012-04-17 
this.GetType()的问题public partial class 测试 : System.Web.UI.Page{protected void Page_Load(object

this.GetType()的问题
public partial class 测试 : System.Web.UI.Page
{
  protected void Page_Load(object sender, EventArgs e)
  {
  Response.Write(this.GetType());
  }
}
//为什么当前this的类型是:ASP.测试_aspx

[解决办法]
别用这种方式,价格断点调试一下看看type是什么

探讨

不是这个是什么呢,他会执行 Type的ToString,显示你的命名空间以及类名

热点排行