|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxEnabledAutoSuggestSample._Default" %>
<%@ Register assembly="AjaxEnabledAutoSuggest" namespace="AutoSuggest" tagprefix="cc1" %>
<!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>AutoSuggest Sample Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Wizard ID="WizardSteps" runat="server" BackColor="#EFF3FB"
BorderColor="#B5C7DE" BorderWidth="1px" Font-Names="Verdana"
Font-Size="0.8em" ActiveStepIndex="0" Height="120px" Width="600px"
onfinishbuttonclick="WizardSteps_FinishButtonClick">
<StepStyle Font-Size="14px" ForeColor="#333333" VerticalAlign="Top" />
<WizardSteps>
<asp:WizardStep runat="server" title="Introduction" StepType="Start">
Welcome to the AJAX-enabled AutoSuggestTextBox sample. This sample page exhibits
the AutoSuggestTextBox's ability to function when injected into an AJAX
UpdatePanel. Click the "Next" button to test the control.</asp:WizardStep>
<asp:WizardStep runat="server" title="AutoSuggest" StepType="Finish">
<table width="500px">
<tr>
<td colspan="2" align="center"><b>Choose an animal</b></td>
</tr>
<tr>
<td width="200px" align="right">Type:</td>
<td align="left">
<cc1:AutoSuggestTextBox ID="astAnimalType" runat="server" FillVisibile="False"
FilterSuggestions="False" ReadOnly="True" SelectedValue="" UseDropDownButton="True"
Width="200px">
<Items>
<asp:ListItem>All</asp:ListItem>
<asp:ListItem>Amphibian</asp:ListItem>
<asp:ListItem>Bird</asp:ListItem>
<asp:ListItem>Fish</asp:ListItem>
<asp:ListItem>Invertebrate</asp:ListItem>
<asp:ListItem>Mammal</asp:ListItem>
<asp:ListItem>Reptile</asp:ListItem>
</Items>
</cc1:AutoSuggestTextBox>
</td>
</tr>
<tr>
<td width="200px" align="right">Animal:</td>
<td align="left">
<cc1:AutoSuggestTextBox ID="astAnimal" runat="server" Width="200px"
AjaxUrl="~/AnimalListPage.aspx" FullRefresh="True" MatchFirst="true"
NoDefault="False">
<Parameters>
<asp:ControlParameter ControlID="astAnimalType" Name="type"
PropertyName="SelectedValue" />
</Parameters>
</cc1:AutoSuggestTextBox>
</td>
</tr>
</table>
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Complete" Title="Complete">
<div style="text-align: center;">
Text:
<asp:Label ID="lblText" runat="server"></asp:Label>
<br />
SelectedText:
<asp:Label ID="lblSelectedText" runat="server"></asp:Label>
<br />
SelectedValue:
<asp:Label ID="lblSelectedValue" runat="server"></asp:Label>
<br />
SelectedIndex:
<asp:Label ID="lblSelectedIndex" runat="server"></asp:Label>
</div>
</asp:WizardStep>
</WizardSteps>
<SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana"
ForeColor="White" />
<NavigationButtonStyle BackColor="White" BorderColor="#507CD1"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#284E98" />
<SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top"
Width="100px" />
<HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid"
BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White"
HorizontalAlign="Center" />
</asp:Wizard>
</ContentTemplate>
</asp:UpdatePanel>
</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 member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.