|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChildPage.aspx.cs" Inherits="ChildPage" MasterPageFile="~/MasterPage.master" %>
<%@ Register Assembly="Anthem.AutoSuggest" Namespace="Anthem" TagPrefix="Anthem" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="Anthem" %>
<%@ Import Namespace="System.Data" %>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1" >
<div>
<Anthem:AutoSuggestBox runat="server" ID="asbProduct" DataKeyField="Name" TextBoxDisplayField="Name"
ItemNotFoundMessage="Item not found!" Width="350px"
UseIFrame="true" >
<HeaderTemplate>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<colgroup>
<col width="30%" />
<col width="70%"/>
</colgroup>
<tr>
<td align="left" >
<b>
<asp:Label runat="server" ID="lblTest" Text="Name" />
</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<colgroup>
<col width="30%" />
<col width="70%"/>
</colgroup>
<tr>
<td align="left" runat="server" id="tcItem">
<%#((DataRowView)Container.DataItem)["Name"]%>
</td>
</tr>
</table>
</ItemTemplate>
</Anthem:AutoSuggestBox>
<br />
<asp:Button ID="btnPost" runat="server" Text="Get Selected Value" />
<br />
<asp:Label runat="server" ID="lblSelectedValue" />
</div>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I've been developing .NET enterprise applications since 2000.
I am originally from Rio de Janeiro and I am currently working at http://www.intelligentcoder.com in Ontario.
I also have my own startup where we offer
client intake forms.