<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Maticsoft.Model.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	增加商品
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>增加商品</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>输入信息</legend>
            <p>
                <label for="ProductId">ProductId:</label>
                <%= Html.TextBox("ProductId") %>
                <%= Html.ValidationMessage("ProductId", "*") %>
            </p>
            <p>
                <label for="BrandId">BrandId:</label>
                <%= Html.TextBox("BrandId") %>
                <%= Html.ValidationMessage("BrandId", "*") %>
            </p>
            <p>
                <label for="CategoryId">CategoryId:</label>
                <%= Html.TextBox("CategoryId") %>
                <%= Html.ValidationMessage("CategoryId", "*") %>
            </p>
            <p>
                <label for="Name">Name:</label>
                <%= Html.TextBox("Name") %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                <label for="Descn">Descn:</label>
                <%= Html.TextBox("Descn") %>
                <%= Html.ValidationMessage("Descn", "*") %>
            </p>
            <p>
                <label for="Image">Image:</label>
                <%= Html.TextBox("Image") %>
                <%= Html.ValidationMessage("Image", "*") %>
            </p>
            <p>
                <label for="ImageSmall">ImageSmall:</label>
                <%= Html.TextBox("ImageSmall") %>
                <%= Html.ValidationMessage("ImageSmall", "*") %>
            </p>
            <p>
                <label for="Price">Price:</label>
                <%= Html.TextBox("Price") %>
                <%= Html.ValidationMessage("Price", "*") %>
            </p>
            <p>
                <label for="VipPrice">VipPrice:</label>
                <%= Html.TextBox("VipPrice") %>
                <%= Html.ValidationMessage("VipPrice", "*") %>
            </p>
            <p>
                <label for="Cheapness">Cheapness:</label>
                <%= Html.TextBox("Cheapness") %>
                <%= Html.ValidationMessage("Cheapness", "*") %>
            </p>
            <p>
                <input type="submit" value="提交" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("返回列表", "List")%>
    </div>

</asp:Content>

