猿问

mvc Html.BeginForm的问题大侠过来看看吧

Html.BeginForm("AddCustomer_sp", "WC_AddCustomer", new {id="from" })

我要写上from表单的 id属性  我这样写不对啊 生成的html

<form action="" method="">

实际我要的是<form action="/WC_AddCustomer/AddCustomer_sp"  id="from" method="post">

没多少分了 大侠们别介意 都提问用完了 呵呵


绝地无双
浏览 609回答 2
2回答

慕运维8079593

Html.BeginForm("AddCustomer_sp",&nbsp;"WC_AddCustomer",&nbsp;"POST",&nbsp;new&nbsp;{&nbsp;id="from"&nbsp;})
随时随地看视频慕课网APP
我要回答