SelectedValue 未绑定 asp.net mvc 中的某些 Html.dropdownlist?

发布于 2024-08-05 10:06:51 字数 356 浏览 1 评论 0原文

我得到了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文