MVC排球计分(六)——视图设计

2021-07-15 02:05

阅读:386

@model MvcApplication1.Models.volleyball

@{
    ViewBag.Title = "add";
    
}

    }
    div
    {  width:400px;
       height:300px;
        float:left;
        margin-left:200px;
    }
    div p
    {
        font-size:30px;
    }


add


@using (Html.BeginForm("index","volleyball","HttpPost"))
{
      @Html.ValidationSummary(true)
   

        volleyball
       

          

@Html.Encode(ViewData["nameA"])



            @Html.TextBoxFor(model => model.nameA, new { @style = "visibility:hidden;" })
@*传入的队名*@
          

@Html.EditorFor(model => model.teamA)

@* 传入那个队伍得分*@
            
          
       

       

          

@Html.Encode(ViewData["nameB"])



            @Html.TextBoxFor(model => model.nameB, new { @style = "visibility:hidden;" })

           

@Html.EditorFor(model => model.teamB)


             
       

       

           
           
           

       


        
   

}


评论


亲,登录后才可以留言!