【发布时间】:2015-08-04 07:45:14
【问题描述】:
我在我的网络表单中使用引导国家选择器。我想从国家选择器中获取选定的值。
这是我的国家/地区选择器代码:
<div id="country" class="form-group bfh-selectbox bfh-countries" data-country="US" data-flags="true">
<input type="hidden" value="">
<a class="bfh-selectbox-toggle" role="button" data-toggle="bfh-selectbox" href="#">
<span class="bfh-selectbox-option input-medium" data-option=""></span>
<b class="caret"></b>
</a>
<div class="bfh-selectbox-options">
<div role="listbox">
<ul role="option"></ul>
</div>
</div>
</div>
我尝试使用此代码获取所选值(我正在使用 post 方法传递值):
Country.Text = Convert.ToString(Request.Form["country"]);
我使用另一个页面(Login.aspx 中的国家选择器,从另一个页面 Test.aspx 检索数据)来检索数据。
但这并没有给我任何结果 - 我该怎么办?
【问题讨论】:
标签: c# asp.net twitter-bootstrap