ASP.NET Unleashed 笔记

1.NET Framework consists of two parts:Framework class Library and the Common Language Runtime.

2.在web.config中引入多个命名空间,这样就不用每个页面都引用了(经测试,无效?)

<configuration>  
   <system.web>  
   <pages>  
    <namespaces>  
      <add namespace="System.Net.Mail"/>  
    </namespaces>  
   </pages>  
  </system.web>
</configuration>

 

3.Everything in an ASP.NET page is converted to a .NET Class.

4.LoadPage happens before any control events, PreRender happens after any control events.

5.AutoEventWireUp的用法

6.Page-level trace and application-level trace  

前者所有用户可见,后者只有访问trace.axd页才能看见

7.AssociatedControlID 

让label在辅助阅读器上排版更好?点label的时候焦点自动到对应的TextBox上

8.Literal与Label?

label 会解析成span,literal则不会,适合用来显示title。literal不支持样式,只有Mode

9.Use Alternate Text  for any image.

10.跨页传值

Button的PostBackUrl FindContrl或者property 

11.Click and Command

you can pass a command name and command argument to a command event handler but not to a  click envet handler.

12.display占位置,visibility不占位置

posted @ 2010-09-01 09:41  lightwalker  阅读(144)  评论(0编辑  收藏  举报