Asp.net AJAX code instance.
<Asp: UpdateProgress ID = "UpdateProgress1" runat = "server">
<ProgressTemplate>
<Div id = "PrograssGIF" style = "position: absolute; z-index: 1000; top: 0px; right: 158px">
</Div>
</ProgressTemplate>
</Asp: UpdateProgress>
<Asp: UpdatePanel ID = "DetailUpdatePanel" runat = "server" UpdateMode = "Conditional">
<ContentTemplate>
<Asp: gridView ID = "GridView1" runat = "server" OnSelectedIndexChanged = "inline" OnRowDataBound = "GridView1_RowDataBound" CellPadding = "3" ForeColor = "#333333" GridLines = "None" AutoGenerateColumns =" false ">
<SelectedRowStyle BackColor = "# D1DDF1" Font-Bold = "True" ForeColor = "#333333"/>
<HeaderStyle BackColor = "#507CD1" Font-Bold = "True" ForeColor = "White"/>
<AlternatingRowStyle BackColor = "White"/>
<Columns>
<Asp: CommandField ButtonType = "Button" ShowSelectButton = "True"/>
<Asp: BoundField DataField = "Quarter"/>
<Asp: BoundField DataField = "PC"/>
<Asp: BoundField DataField = "Notebook"/>
<Asp: BoundField DataField = "Software"/>
<Asp: BoundField DataField = "Service"/>
</Columns>
<FooterStyle BackColor = "#507CD1" Font-Bold = "True" ForeColor = "White"/>
<RowStyle BackColor = "# EFF3FB" HorizontalAlign = "Center"/>
<EditRowStyle BackColor = "# 2461BF"/>
<PagerStyle BackColor = "# 2461BF" ForeColor = "White" HorizontalAlign = "Center"/>
</Asp: GridView>
</ContentTemplate>
<Triggers>
<Asp: AsyncPostBackTrigger ControlID = "dpYear" EventName = "SelectedIndexChanged"/>
</Triggers>
</Asp: UpdatePanel>
<Asp: UpdatePanel ID = "UpdatePanel3" runat = "server" UpdateMode = "Conditional">
<ContentTemplate>
<Asp: checkBoxList ID = "cbCompareYear" runat = "server" BackColor = "#507CD1" RepeatLayout = "Flow" Width = "100%" RepeatDirection = "Horizontal" Font-Bold = "True" ForeColor = "White">
</Asp: CheckBoxList>
</ContentTemplate>
<Triggers>
<Asp: AsyncPostBackTrigger ControlID = "dpYear" EventName = "SelectedIndexChanged"/>
</Triggers>
</Asp: UpdatePanel>
Related: http://www.cnblogs.com/gentlewolf/archive/2007/08/01/839333.html
Http://blog.csdn.net/ccaakkee/archive/2007/12/07/1921751.aspx
Ajax(6)
Use UpdateProgressMethod