<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditItem.ascx.cs" Inherits="AdefWebserver.Modules.StoreLocator.Edit" %> <div align="left"> <asp:LinkButton ID="lnkBack" runat="server" OnClick="lnkBack_Click">[Back]</asp:LinkButton> </div> <asp:LinqDataSource ID="LDSLocations" runat="server" ContextTypeName="AdefWebserver.Modules.StoreLocator.StoreLocatorDALDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" OrderBy="LocationName" TableName="ADefWebserver_Locations" Where="ModuleID == @ModuleID" OnSelecting="LDSLocations_Selecting"> <WhereParameters> <asp:Parameter Name="ModuleID" Type="Int32" /> </WhereParameters> </asp:LinqDataSource> <asp:ListView ID="lvLocations" runat="server" DataKeyNames="LocationId" DataSourceID="LDSLocations" InsertItemPosition="LastItem" OnItemInserting="lvLocations_ItemInserting"> <ItemTemplate> <tr style=""> <td> <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" OnClientClick="return confirm('Are you certain you want to delete ?');" /> </td> <td> <asp:Label ID="LocationNameLabel" runat="server" Text='<%# Eval("LocationName") %>' /> </td> <td> <asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("Address") %>' /> </td> <td> <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>' /> </td> <td> <asp:Label ID="StateLabel" runat="server" Text='<%# Eval("State") %>' /> </td> <td> <asp:Label ID="ZipLabel" runat="server" Text='<%# Eval("Zip") %>' /> </td> <td> <asp:Label ID="LatitudeLabel" runat="server" Text='<%# Eval("Latitude") %>' /> / <asp:Label ID="Label1" runat="server" Text='<%# Eval("Longitude") %>' /> </td> </tr> </ItemTemplate> <InsertItemTemplate> <tr style=""> <td> <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" /> </td> <td> <asp:TextBox ID="LocationNameTextBox" runat="server" Text='<%# Bind("LocationName") %>' Columns="10" /> </td> <td> <asp:TextBox ID="AddressTextBox" runat="server" Text='<%# Bind("Address") %>' Columns="20" /> </td> <td> <asp:TextBox ID="CityTextBox" runat="server" Text='<%# Bind("City") %>' Columns="10" /> </td> <td> <asp:DropDownList ID="dllStates" runat="server"> <asp:ListItem Value="AL">AL</asp:ListItem> <asp:ListItem Value="AK">AK</asp:ListItem> <asp:ListItem Value="AZ">AZ</asp:ListItem> <asp:ListItem Value="AR">AR</asp:ListItem> <asp:ListItem Value="CA" Selected="True">CA</asp:ListItem> <asp:ListItem Value="CO">CO</asp:ListItem> <asp:ListItem Value="CT">CT</asp:ListItem> <asp:ListItem Value="DC">DC</asp:ListItem> <asp:ListItem Value="DE">DE</asp:ListItem> <asp:ListItem Value="FL">FL</asp:ListItem> <asp:ListItem Value="GA">GA</asp:ListItem> <asp:ListItem Value="HI">HI</asp:ListItem> <asp:ListItem Value="ID">ID</asp:ListItem> <asp:ListItem Value="IL">IL</asp:ListItem> <asp:ListItem Value="IN">IN</asp:ListItem> <asp:ListItem Value="IA">IA</asp:ListItem> <asp:ListItem Value="KS">KS</asp:ListItem> <asp:ListItem Value="KY">KY</asp:ListItem> <asp:ListItem Value="LA">LA</asp:ListItem> <asp:ListItem Value="ME">ME</asp:ListItem> <asp:ListItem Value="MD">MD</asp:ListItem> <asp:ListItem Value="MA">MA</asp:ListItem> <asp:ListItem Value="MI">MI</asp:ListItem> <asp:ListItem Value="MN">MN</asp:ListItem> <asp:ListItem Value="MS">MS</asp:ListItem> <asp:ListItem Value="MO">MO</asp:ListItem> <asp:ListItem Value="MT">MT</asp:ListItem> <asp:ListItem Value="NE">NE</asp:ListItem> <asp:ListItem Value="NV">NV</asp:ListItem> <asp:ListItem Value="NH">NH</asp:ListItem> <asp:ListItem Value="NJ">NJ</asp:ListItem> <asp:ListItem Value="NM">NM</asp:ListItem> <asp:ListItem Value="NY">NY</asp:ListItem> <asp:ListItem Value="NC">NC</asp:ListItem> <asp:ListItem Value="ND">ND</asp:ListItem> <asp:ListItem Value="OH">OH</asp:ListItem> <asp:ListItem Value="OK">OK</asp:ListItem> <asp:ListItem Value="OR">OR</asp:ListItem> <asp:ListItem Value="PA">PA</asp:ListItem> <asp:ListItem Value="RI">RI</asp:ListItem> <asp:ListItem Value="SC">SC</asp:ListItem> <asp:ListItem Value="SD">SD</asp:ListItem> <asp:ListItem Value="TN">TN</asp:ListItem> <asp:ListItem Value="TX">TX</asp:ListItem> <asp:ListItem Value="UT">UT</asp:ListItem> <asp:ListItem Value="VT">VT</asp:ListItem> <asp:ListItem Value="VA">VA</asp:ListItem> <asp:ListItem Value="WA">WA</asp:ListItem> <asp:ListItem Value="WV">WV</asp:ListItem> <asp:ListItem Value="WI">WI</asp:ListItem> <asp:ListItem Value="WY">WY</asp:ListItem> </asp:DropDownList> </td> <td> <asp:TextBox ID="ZipTextBox" runat="server" Text='<%# Bind("Zip") %>' Columns="4" /> </td> <td> </td> </tr> </InsertItemTemplate> <LayoutTemplate> <table runat="server"> <tr runat="server"> <td runat="server"> <table id="itemPlaceholderContainer" runat="server" border="0" style=""> <tr runat="server" style=""> <th runat="server"> </th> <th runat="server"> Location Name </th> <th runat="server"> Address </th> <th runat="server"> City </th> <th runat="server"> State </th> <th runat="server"> Zip </th> <th runat="server"> Latitude / Longitude </th> </tr> <tr id="itemPlaceholder" runat="server"> </tr> </table> </td> </tr> <tr runat="server"> <td runat="server" style=""> <asp:DataPager ID="DataPager1" runat="server"> <Fields> <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" /> <asp:NumericPagerField /> <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" /> </Fields> </asp:DataPager> </td> </tr> </table> </LayoutTemplate> </asp:ListView> <div align="left"> <asp:Label ID="lblError" runat="server" EnableViewState="False" ForeColor="Red"></asp:Label> </div>
Buy DotNetNuke Modules from Snowcovered |
DotNetNuke™ is a registered trademark of DotNetNuke Corporation.