1
傳遞這是我dropdownlistFor
當dropdownlitFor被禁用,值始終爲0
@Html.DropDownListFor(m => m.objTicket.DepartmentId, new SelectList(Model.objTicket.Departments, "DepartmentId", "Department"),
"-- Select Department--", new { id = "Deptment"}, disabled="disabled")
如何傳遞已經被存儲在objTicket.DepartmentId
價值?
如果我更改刪除disabled =「disabled」,我得到我的正確值。
謝謝!有效 ! :) – Joseph