1 <%@ Page Language="C#" MasterPageFile="~/MasterPages/SamplePageWithCode.master"
2 AutoEventWireup="true"
3 CodeFile="01_NoExperience.aspx.cs"
4 Inherits="_02_UpdatePanel_01_NoExperience"
5 Title="UpdatePanel: GridView w/No User Experience" %>
6 <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
7 <asp:TextBox ID="CustomerSearch" runat="server"></asp:TextBox>
8 <asp:button ID="SearchButton" runat="server" Text="Search" />
9 <atlas:AutoCompleteExtender ID="AutoComplete" runat="server">
10 <atlas:AutoCompleteProperties Enabled="true"
11 ServiceMethod="GetCustomerAbbr"
12 ServicePath="~/CustomerService.asmx"
13 TargetControlID="CustomerSearch" />
14 </atlas:AutoCompleteExtender>
15 <br />
16 This page is the typcial ASP.NET GridView with Paging/Sorting enabled. These
17 events fire a full PostBack.<br />
18 <br />
19 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="NWindDb" PageSize="5">
20 </asp:GridView>
21 <asp:SqlDataSource ID="NWindDb" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindDb %>"
22 SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [Country] FROM [Customers]">
23 </asp:SqlDataSource>
24 </asp:Content>
|