<%@ Control Language="C#" AutoEventWireup="true" CodeFile="View.ascx.cs" Inherits="AdefWebserver.Modules.StoreLocator.View" %> <asp:Literal ID="lrlGoogleMap" runat="server"></asp:Literal> <asp:Panel ID="pnlEnterAddress" runat="server"> Enter full address or just zip code: <br /> <asp:TextBox ID="txtAddress" runat="server" Columns="50"></asp:TextBox> <br /> <br /> Find the stores that are within <asp:DropDownList ID="distanceDropDown" runat="server"> <asp:ListItem>5</asp:ListItem> <asp:ListItem>10</asp:ListItem> <asp:ListItem>15</asp:ListItem> <asp:ListItem Selected="True">25</asp:ListItem> <asp:ListItem>30</asp:ListItem> <asp:ListItem>40</asp:ListItem> <asp:ListItem>50</asp:ListItem> </asp:DropDownList> miles. <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" /> <br /> <br /> <asp:Label ID="lblError" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label> </asp:Panel> <asp:Panel ID="pnlMap" runat="server" Visible="false"> <table cellpadding="4" cellspacing="8"> <tr> <td valign="top"> <asp:Label ID="totalResultCount" runat="server"></asp:Label> <asp:ListView ID="searchResults" runat="server" OnItemDataBound="searchResults_ItemDataBound" DataKeyNames="LocationId"> <ItemTemplate> <span style="background-color: #DCDCDC; color: #000000; background-repeat: repeat; display: block;"><b> <asp:Literal ID="locationNumber" runat="server"></asp:Literal>. <%# Eval("LocationName") %></b><br /> <%# Eval("Address")%><br /> <%# Eval("City")%>, <%# Eval("State")%> <%# Eval("Zip")%> </span> <br /> </ItemTemplate> <AlternatingItemTemplate> <span style="background-color: #FFF8DC; background-repeat: repeat; display: block;"> <b> <asp:Literal ID="locationNumber" runat="server"></asp:Literal>. <%# Eval("LocationName") %></b><br /> <%# Eval("Address")%><br /> <%# Eval("City")%>, <%# Eval("State")%> <%# Eval("Zip")%> </span> <br /> </AlternatingItemTemplate> <EmptyDataTemplate> <span>No data was returned.</span> </EmptyDataTemplate> <LayoutTemplate> <div id="itemPlaceholderContainer" runat="server" style="font-family: Verdana, Arial, Helvetica, sans-serif;"> <span id="itemPlaceholder" runat="server" /> </div> </LayoutTemplate> </asp:ListView> </td> <td valign="top"> <asp:Label ID="lblDirections" runat="server" Text="Click on icon for address and directions." /> <asp:Panel ID="map" runat="server" Height="500px" Width="500px"> </asp:Panel> </td> </tr> </table> </asp:Panel>
Buy DotNetNuke Modules from Snowcovered |
DotNetNuke™ is a registered trademark of DotNetNuke Corporation.