SelectedValue 未绑定 asp.net mvc 中的某些 Html.dropdownlist?
我得到了 3 个 html.dropdownlists
,其中只有 1 个设置了 selectedvalue
。为什么它绑定到一个下拉列表而不是另一个 2。观察,所有的值都是正确的,它甚至显示哪个值的 selected=true。但在页面中它没有被设置。 有什么解决办法吗?
Function Index(ByVal custdetails As Customer, ByVal CCDetails As CreditCard)
As ActionResult
txn=mysession.getdata(mysession.activesession)
End Function
I got 3 html.dropdownlists
out of which only for 1 its the setting the selectedvalue
.How come its binding for one of the dropdownlist not for the other 2.In the Quick Watch,all the values are proper, it even shows which value has its selected=true. but in the page it doesnt get set.
Is there any solution for this?
Function Index(ByVal custdetails As Customer, ByVal CCDetails As CreditCard)
As ActionResult
txn=mysession.getdata(mysession.activesession)
End Function
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论