这几天在翻看《Professional ASP.NET 2.0》一书,在第110页上看到列出的HtmlControl的Site属性
Site
Provides information about the Web site for which the server control belongs.
!&[email protected]#*^@%[email protected]!??有点发晕,查看Visual Studio 2005的文档,
Site
Gets information about the container that hosts the current control when rendered on a design surface.(Inherited from Control.)
这应该是对的,但书里的定义是从哪里来的呢?看了一下1.1的文档,才发现始作俑者
Site (inherited from Control) Gets information about the Web site to which the server control belongs.
Site(从 Control 继承) 获取有关服务器控件所属 Web 站点的信息。
???
看来,抄东西最好也要先理解一下再抄,别以讹传讹啊,