2008年9月5日
1.Web.config文件配置
<system.web>
<authentication mode="Forms" >
<forms name="Demo9" loginUrl="Login.aspx" protection="All" >
</forms>
</authentication>
<authorization>
<deny users="*" />
</authorization>
</system.web>
<Forms>标签中的name表示指定要用于身份验证的 HTTP Cookie。默认情况下,name 的值是 .ASPXAUTH。采用此种方式验证用户后,以此用户的信息建立一个FormsAuthenticationTicket类型的身份验证票,再加密序列化为一个字符串,最后将这个字符串写到客户端的name指定名字的Cookie中。一旦这个Cookie写到客户端后,此用户再次访问这个web应用时会将连同Cookie一起发送到服务端,服务端将会知道此用户是已经验证过的。
2008年9月4日
前提条件:使用相同的数据源和数据表。
1.GridView控件的跟踪信息
Trace Information
|
| Category |
Message |
From First(s) |
From Last(s) |
| aspx.page |
Begin PreInit |
|
|
| aspx.page |
End PreInit |
0.00761387545738584 |
0.007614 |
| aspx.page |
Begin Init |
0.00834522664617133 |
0.000731 |
| aspx.page |
End Init |
0.0147066164308032 |
0.006361 |
| aspx.page |
Begin InitComplete |
0.0147694675109856 |
0.000063 |
| aspx.page |
End InitComplete |
0.0151737063708209 |
0.000404 |
| aspx.page |
Begin PreLoad |
0.0152166256202904 |
0.000043 |
| aspx.page |
End PreLoad |
0.0169861773403953 |
0.001770 |
| aspx.page |
Begin Load |
0.0170469332174901 |
0.000061 |
| aspx.page |
End Load |
0.029018460176104 |
0.011972 |
| aspx.page |
Begin LoadComplete |
0.0290716522698033 |
0.000053 |
| aspx.page |
End LoadComplete |
0.0369269696412758 |
0.007855 |
| aspx.page |
Begin PreRender |
0.0369943292509732 |
0.000067 |
| aspx.page |
End PreRender |
0.838813313060768 |
0.801819 |
| aspx.page |
Begin PreRenderComplete |
0.839426044677616 |
0.000613 |
| aspx.page |
End PreRenderComplete |
0.839723686488112 |
0.000298 |
| aspx.page |
Begin SaveState |
0.873075119212712 |
0.033351 |
| aspx.page |
End SaveState |
0.956338289418723 |
0.083263 |
| aspx.page |
Begin SaveStateComplete |
0.956409187816411 |
0.000071 |
| aspx.page |
End SaveStateComplete |
0.956842922591101 |
0.000434 |
| aspx.page |
Begin Render |
0.956890447945732 |
0.000048 |
| aspx.page |
End Render |
1.07131083691166 |
0.114420 |
2.Repeater控件
Trace Information
|
| Category |
Message |
From First(s) |
From Last(s) |
| aspx.page |
Begin PreInit |
|
|
| aspx.page |
End PreInit |
5.3309719135854E-05 |
0.000053 |
| aspx.page |
Begin Init |
8.10736662712402E-05 |
0.000028 |
| aspx.page |
End Init |
0.00655623865933735 |
0.006475 |
| aspx.page |
Begin InitComplete |
0.00662224758149404 |
0.000066 |
| aspx.page |
End InitComplete |
0.00666264289652637 |
0.000040 |
| aspx.page |
Begin PreLoad |
0.00668487310153548 |
0.000022 |
| aspx.page |
End PreLoad |
0.00840097241483016 |
0.001716 |
| aspx.page |
Begin Load |
0.00843355566323035 |
0.000033 |
| aspx.page |
End Load |
0.0121554984879116 |
0.003722 |
| aspx.page |
Begin LoadComplete |
0.0121972899366761 |
0.000042 |
| aspx.page |
End LoadComplete |
0.0122353116906986 |
0.000038 |
| aspx.page |
Begin PreRender |
0.0122570232744649 |
0.000022 |
| aspx.page |
End PreRender |
0.100455331406326 |
0.088198 |
| aspx.page |
Begin PreRenderComplete |
0.100533618485907 |
0.000078 |
| aspx.page |
End PreRenderComplete |
0.100572916074919 |
0.000039 |
| aspx.page |
Begin SaveState |
0.106864294665085 |
0.006291 |
| aspx.page |
End SaveState |
0.109921794790396 |
0.003058 |
| aspx.page |
Begin SaveStateComplete |
0.10997828273546 |
0.000056 |
| aspx.page |
End SaveStateComplete |
0.110015976341247 |
0.000038 |
| aspx.page |
Begin Render |
0.110046820270338 |
0.000031 |
| aspx.page |
End Render |
0.161672549163757 |
0.051626 |
3.Repeater控件代码
1 <table border="1">
2 <tr>
3 <th>CategoryID</th>
4 <th>CategoryName</th>
5 <th>Description</th>
6 </tr>
7 <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
8 <ItemTemplate>
9 <tr>
10 <td><%#Eval("CategoryID")%></td>
11 <td><%#Eval("CategoryName")%></td>
12 <td><%#Eval("Description")%></td>
13 </tr>
14 </ItemTemplate>
15 </asp:Repeater>
16 </table>
2008年9月3日
Overview of project management processes
The five process groups are:initiating,planning,executing,mornitoring and controlling,and closing.
2008年9月2日
2008年9月1日
2008年8月29日
2008年8月28日
ASP.NET Web Parts controls are an integrated set of controls for creating Web sites that enable end users to modify the content, appearance, and behavior of Web pages directly in a browser. The topics in this section provide information on what Web Parts are, how they work, and how to use them to create user-customizable ASP.NET Web pages.
1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebPart.aspx.cs" Inherits="WebPart" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml" >
6 <head runat="server">
7 <title>Untitled Page</title>
8 </head>
9 <body>
10 <form id="form1" runat="server">
11 <div>
12 <asp:WebPartManager ID="WebPartManager1" runat="server">
13 </asp:WebPartManager>
14 Web parts Demo<br />
15 <table>
16 <tr>
17 <td style="width: 100px">
18 <asp:WebPartZone ID="WebPartZone1" runat="server">
19 <ZoneTemplate>
20 <asp:Label ID="Label1" runat="server" Text="Web part1"></asp:Label>
21 </ZoneTemplate>
22 </asp:WebPartZone>
23 </td>
24 <td style="width: 100px">
25 <asp:WebPartZone ID="WebPartZone2" runat="server">
26 <ZoneTemplate>
27 <asp:Label ID="Label2" runat="server" Text="Web part2"></asp:Label>
28 </ZoneTemplate>
29 </asp:WebPartZone>
30 </td>
31 <td style="width: 100px">
32 </td>
33 </tr>
34 </table>
35
36 </div>
37 </form>
38 </body>
39 </html>
40
2008年8月27日
声明destructor
1 public class Test
2 {
3 ~Test()
4 {
5 }
6 }
7
编译后的MSIL代码
1 .method family hidebysig virtual instance void
2 Finalize() cil managed
3 {
4 // Code size 16 (0x10)
5 .maxstack 1
6 .locals init ([0] int32 a)
7 .try
8 {
9 IL_0000: nop
10 IL_0001: ldc.i4.0
11 IL_0002: stloc.0
12 IL_0003: nop
13 IL_0004: leave.s IL_000e
14 } // end .try
15 finally
16 {
17 IL_0006: ldarg.0
18 IL_0007: call instance void [mscorlib]System.Object::Finalize()
19 IL_000c: nop
20 IL_000d: endfinally
21 } // end handler
22 IL_000e: nop
23 IL_000f: ret
24 } // end of method Test::Finalize
25
26
2008年8月26日
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8
9 namespace TEST
10 {
11 public delegate void MyEventHandler();
12
13 public partial class Form1 : Form
14 {
15 public event MyEventHandler myEvent;
16
17 public Form1()
18 {
19 InitializeComponent();
20 }
21
22 private void button1_Click(object sender, EventArgs e)
23 {
24 myEvent += GetMY;
25
26 foreach (Delegate d in myEvent.GetInvocationList())
27 {
28 string ds = d.Method.Name;
29 }
30 }
31
32 public void GetMY()
33 {
34 }
35 }
36 }
2008年8月25日
Third edition
Ongoing work
Characteristics
James Lewis "the project management as the planning,scheduling,and controlling of project activities to meet project objectives"
The PMBOK Guide defines project management as the application of knowledge,skills,and techniques to project activities to meet project requirements.