|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MultipleColumns.aspx.cs" Inherits="MultipleColumns" %>
<%@ Register Assembly="Anthem.AutoSuggest" Namespace="Anthem" TagPrefix="Anthem" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="Anthem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="System.Data" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>AutoSuggestBox</title>
<script language="javascript">
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
Type one or more letters in the textbox below.
<br /><br />
Product:
<Anthem:AutoSuggestBox runat="server" ID="asbProduct" DataKeyField="ProductID" TextBoxDisplayField="ProductName"
ItemNotFoundMessage="Product not found!" Required="true" Width="350px">
<HeaderTemplate>
<table border="0" width="400px" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="80%" >
<b>
Product
</b>
</td>
<td align="right" >
<b>
Price (U$)
</b>
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table border="0" width="400px" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="80%">
<%# ((DataRowView)Container.DataItem)["ProductName"] %>
</td>
<td align="right" >
<%# Convert.ToDecimal(((DataRowView)Container.DataItem)["Price"]).ToString("N2") %>
</td>
</tr>
</table>
</ItemTemplate>
</Anthem:AutoSuggestBox>
</div>
</form>
</body>
</html>
|
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.