<div style="padding-left:20px" class="pull-left">@{if (TempData["BasketTrnId"] != null){ var BasketTrnId = TempData["BasketTrnId"].ToString(); <input type="hidden" id="BasketRefNo" value="@BasketTrnId" data-bind="text: hiddnBasketRefNumber"/>}else{ <input type="hidden" id="BasketRefNo" value="" data-bind="text: hiddnBasketRefNumber" />}}</div> 这篇关于MVC3上的隐藏字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-24 22:04