Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Skip Navigation Links.
cs
App_Code
ProductsView.cs
ShowProducts.aspx
images
awc_jersey_female_large.gif
awc_jersey_male_large.gif
awc_tee_female_large.gif
awc_tee_male_large.gif
awc_tee_male_yellow_large.gif
bikepump_large.gif
bike_lock_large.gif
bike_shoes_large.gif
bike_shorts_female_large.gif
bike_shorts_male_large.gif
chain_large.gif
chain_lube_large.gif
clipless_pedals_large.gif
co2_4tire_large.gif
double_headlight_large.gif
fork_large.gif
frame_black_large.gif
frame_blue_large.gif
frame_large.gif
frame_red_large.gif
frame_silver_large.gif
frame_yellow_large.gif
handlebar_large.gif
handpump_large.gif
hotrodbike_black_large.gif
hotrodbike_blue_large.gif
hotrodbike_f_large.gif
hotrodbike_f_silver_large.gif
hotrodbike_large.gif
hotrodbike_red_large.gif
hotrodbike_silver_large.gif
hotrodbike_yellow_large.gif
innertube_large.gif
julianax_r_02_black_large.gif
julianax_r_02_blue_large.gif
julianax_r_02_f_black_large.gif
julianax_r_02_f_blue_large.gif
julianax_r_02_f_gold_large.gif
julianax_r_02_f_green_large.gif
julianax_r_02_f_red_large.gif
julianax_r_02_gold_large.gif
julianax_r_02_green_large.gif
julianax_r_02_red_large.gif
julianax_r_02_silver_large.gif
julianax_r_02_yellow_large.gif
mb_shoes_large.gif
mb_tires_large.gif
no_image_available_large.gif
pedal_large.gif
racer02_black_f_large.gif
racer02_black_large.gif
racer02_blue_f_large.gif
racer02_blue_large.gif
racer02_green_f_large.gif
racer02_green_large.gif
racer02_red_large.gif
racer02_silver_large.gif
racer02_yellow_f_large.gif
racer_black_large.gif
racer_blue_large.gif
racer_red_large.gif
racer_silver_large.gif
racer_yellow_large.gif
roadster_black_large.gif
roadster_blue_large.gif
roadster_green_f_large.gif
roadster_green_large.gif
roadster_large.gif
roadster_purple_f_large.gif
roadster_purple_large.gif
roadster_red_f_large.gif
roadster_red_large.gif
roadster_silver_large.gif
roadster_yellow_f_large.gif
roadster_yellow_large.gif
saddle_large.gif
shorts_female_large.gif
shorts_male_large.gif
silver_chain_large.gif
silver_pedal_large.gif
silver_sprocket_large.gif
single_headlight_large.gif
sprocket_large.gif
street_tires_large.gif
superlight_black_f_large.gif
superlight_black_large.gif
superlight_blue_f_large.gif
superlight_blue_large.gif
superlight_metalicgreen_f_large.gif
superlight_metalicgreen_large.gif
superlight_red_f_large.gif
superlight_red_large.gif
superlight_silver_f_large.gif
superlight_silver_large.gif
superlight_yellow_f_large.gif
superlight_yellow_large.gif
tail_lights_large.gif
thumbnails
awc_jersey_female_small.gif
awc_jersey_male_small.gif
awc_tee_female_small.gif
awc_tee_male_small.gif
awc_tee_male_yellow_small.gif
bikepump_small.gif
bike_lock_small.gif
bike_shoes_small.gif
bike_shorts_female_small.gif
bike_shorts_male_small.gif
chain_lube_small.gif
chain_small.gif
clipless_pedals_small.gif
co2_4tire_small.gif
double_headlight_small.gif
fork_small.gif
frame_black_small.gif
frame_blue_small.gif
frame_red_small.gif
frame_silver_small.gif
frame_small.gif
frame_yellow_small.gif
handlebar_small.gif
handpump_small.gif
hotrodbike_black_small.gif
hotrodbike_blue_small.gif
hotrodbike_f_silver_small.gif
hotrodbike_f_small.gif
hotrodbike_red_small.gif
hotrodbike_silver_small.gif
hotrodbike_small.gif
hotrodbike_yellow_small.gif
innertube_small.gif
julianax_r_02_black_small.gif
julianax_r_02_blue_small.gif
julianax_r_02_f_black_small.gif
julianax_r_02_f_blue_small.gif
julianax_r_02_f_gold_small.gif
julianax_r_02_f_green_small.gif
julianax_r_02_f_red_small.gif
julianax_r_02_gold_small.gif
julianax_r_02_green_small.gif
julianax_r_02_red_small.gif
julianax_r_02_silver_small.gif
julianax_r_02_yellow_small.gif
mb_shoes_small.gif
mb_tires_small.gif
no_image_available_small.gif
pedal_small.gif
racer02_black_f_small.gif
racer02_black_small.gif
racer02_blue_f_small.gif
racer02_blue_small.gif
racer02_green_f_small.gif
racer02_green_small.gif
racer02_red_small.gif
racer02_silver_small.gif
racer02_yellow_f_small.gif
racer_black_small.gif
racer_blue_small.gif
racer_red_small.gif
racer_silver_small.gif
racer_yellow_small.gif
roadster_black_small.gif
roadster_blue_small.gif
roadster_green_f_small.gif
roadster_green_small.gif
roadster_purple_f_small.gif
roadster_purple_small.gif
roadster_red_f_small.gif
roadster_red_small.gif
roadster_silver_small.gif
roadster_small.gif
roadster_yellow_f_small.gif
roadster_yellow_small.gif
saddle_small.gif
shorts_female_small.gif
shorts_male_small.gif
silver_chain_small.gif
silver_pedal_small.gif
silver_sprocket_small.gif
single_headlight_small.gif
sprocket_small.gif
street_tires_small.gif
superlight_black_f_small.gif
superlight_black_small.gif
superlight_blue_f_small.gif
superlight_blue_small.gif
superlight_metalicgreen_f_small.gif
superlight_metalicgreen_small.gif
superlight_red_f_small.gif
superlight_red_small.gif
superlight_silver_f_small.gif
superlight_silver_small.gif
superlight_yellow_f_small.gif
superlight_yellow_small.gif
tail_lights_small.gif
tirepatch_kit_small.gif
water_bottle_cage_small.gif
water_bottle_small.gif
wheel_small.gif
tirepatch_kit_large.gif
water_bottle_cage_large.gif
water_bottle_large.gif
wheel_large.gif
vb
App_Code
ProductsView.vb
ShowProducts.aspx
 

UpdatePanelTutorialCustom Sample

cs/ShowProducts.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register Namespace="UpdatePanelTutorialCustom.CS" TagPrefix="sample" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Browse Products</title>
    <script runat="server">
        protected void ProductsView1_RowCommand(object sender, EventArgs e)
        {
            ShoppingCartList.DataSource = ProductsView1.Cart;
            ShoppingCartList.DataBind();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="false" />
        <h2>Browse Products</h2>
        <sample:ProductsView runat="server" ID="ProductsView1" PageSize="5" OnRowCommand="ProductsView1_RowCommand" />
                                 
        <asp:UpdatePanel runat="server" ID="CartUpdatePanel">
          <ContentTemplate>
            <h3>Selected Items</h3>
            <asp:BulletedList BulletStyle="numbered" runat="server" ID="ShoppingCartList" />
          </ContentTemplate>
        </asp:UpdatePanel>
     </div>
    </form>
</body>
</html>