Skip to content

Instantly share code, notes, and snippets.

@Defcoq
Created June 6, 2021 16:20
Show Gist options
  • Save Defcoq/873fd59b0f58502a640a95a582922866 to your computer and use it in GitHub Desktop.
Save Defcoq/873fd59b0f58502a640a95a582922866 to your computer and use it in GitHub Desktop.
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ItinnovDesign.SoC.WebUI._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<form id="form1" runat="server">
<div>
<asp:DropDownList AutoPostBack="true" ID="ddlCustomerType" runat="server" >
<asp:ListItem Value="0">Standard</asp:ListItem>
<asp:ListItem Value="1">Trade</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="lblErrorMessage" runat="server" ></asp:Label>
<asp:Repeater ID="rptProducts" runat="server" >
<HeaderTemplate>
<table>
<tr>
<td>Name</td>
<td>RRP</td>
<td>Selling Price</td>
<td>Discount</td>
<td>Savings</td>
</tr>
<tr>
<td colspan="5"><hr /></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%# Eval("Name") %></td>
<td><%# Eval("RRP")%></td>
<td><%# Eval("SellingPrice") %></td>
<td><%# Eval("Discount") %></td>
<td><%# Eval("Savings") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
</form>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment