日期:2014-05-17  浏览次数:20701 次

asp.mvc3问题,请赐教……
数据库中有两张表,商品信息表和商品评价表。页面上面是商品的信息,下面是要求用户填写的评价表。

@model Udp.Model.Car_Goods_Info
@{
    ViewBag.Title = "评价";
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="@Url.Content("~/css/goods.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/js/jquery-1.5.2.min.js")" type="text/javascript"></script>
</head>
<body scroll="no">
    <div>
        @using (Html.BeginForm("SaveCar_Goods_pj", "Goods", FormMethod.Post, new { id = "frmAdminSet" }))
        {
            @Html.ValidationSummary(true)
            @Html.HiddenFor(m => m.ID)
            <table cellpadding="0" cellspacing="0" class="CarTable" width="750px">
                <tr>
                    <td class="tabletitle">
                        商品名:
                       </td>
                    <td style="width: 150px;">
                        @Model.GoodsName
                        @Html.HiddenFor(m => m.GoodsName)
                    </td>
                    <td class="tabletitle">
                        产地:
                       </td>