可以用:
<input type="number" id="MinHours" name="MinHours"value=@ViewBag.minhour text=@ViewBag.minhour />