ASP.net AJAX代码实例

asp.net AJAX 代码实例。
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
    <ProgressTemplate>
 <div id="PrograssGIF" style="position:absolute; z-index:1000;top:0px; right:158px">
     <img src="Images/fire1.gif" />
 </div>
    </ProgressTemplate>
</asp:UpdateProgress> 

<asp:UpdatePanel ID="DetailUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
 <asp:GridView ID="GridView1"  runat="server" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 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>

 

相关:http://www.cnblogs.com/gentlewolf/archive/2007/08/01/839333.html

http://blog.csdn.net/ccaakkee/archive/2007/12/07/1921751.aspx

Ajax(6)UpdateProgress使用方法

 

posted on 2009-11-26 14:23  风雨者2  阅读(4761)  评论(0编辑  收藏  举报

导航