@ Html.DropDownList保留回发期间的值 [英] @Html.DropDownList to preserve the value during postback
本文介绍了@ Html.DropDownList保留回发期间的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个@ Html.DropdownList,并在其中填充了数据,但是每当发生回发时,下拉列表的选定值都会丢失.我如何保留@ Html.DropdownList的值以保留该值.
请帮助解决问题
问候
Hi,
I have a @Html.DropdownList and i am populating it with data, but whenever postback occurs the selected value of the dropdown lost. How can i preserve the value of the @Html.DropdownList to preserve the value.
Kindly help to resolve the issue
regards
推荐答案
尝试:
http://stackoverflow.com/questions/6043642/how-to-preserve- dropdown-data-post-postback [ ^ ]
Try:
http://stackoverflow.com/questions/6043642/how-to-preserve-dropdown-data-after-postback[^]
这篇关于@ Html.DropDownList保留回发期间的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文