Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.28 KB | None | 0 0
  1. <%@ Page Title="Product Details" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductDetails.aspx.cs" Inherits="WingtipToys.ProductDetails" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  3.     <asp:FormView ID="productDetails" runat="server" ItemType="WingtipToys.Models.Product" SelectMethod ="GetProduct" RenderOuterTable="false">
  4.         <ItemTemplate>
  5.             <div>
  6.                 <h1><%#:Item.ProductName %></h1>
  7.             </div>
  8.             <br />
  9.             <table>
  10.                 <tr>
  11.                     <td>
  12.                         <img src="/Catalog/Images/<%#:Item.ImagePath %>" border="1" alt="<%#:Item.ProductName %>" height="300" />
  13.                     </td>
  14.                     <td style="vertical-align: top">
  15.                         <b>Description:</b><br /><%#:Item.Description %>
  16.                         <br />
  17.                         <span><b>Price:</b>&nbsp;<%#: String.Format("{0:c}", Item.UnitPrice) %></span>
  18.                         <br />
  19.                         <span><b>Product Number:</b>&nbsp;<%#:Item.ProductID %></span>
  20.                         <br />
  21.                     </td>
  22.                 </tr>
  23.             </table>
  24.         </ItemTemplate>
  25.     </asp:FormView>
  26. </asp:Content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement