@Html.TextBox( "userName" , ViewData["userName"] ). 另一種做法,明確轉型:. @Html.TextBox( "userName" , (string)ViewBag.userName).
確定! 回上一頁