ASP.net AJAX code example

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.