0
我正在創建一個簡單的移動應用程序,使用一個asp.net web窗體,我想使用JQuery mobile Select Menu控件。我遇到的問題是當我測試應用程序時,控件無法正確呈現。我使用W3學校的演示進行比較,1。我使用數據讀取器來提取選擇內容。本節的頁碼如下。JQuery Mobile選擇不正確從asp.net web表單
<fieldset class="ui-field-contain">
<label>Channel</label>
<select name="Channel" id="channel">
<asp:Repeater ID="Repeater2" runat="server" DataSourceID="sqlChannel">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<option value='<%# Eval("LocationName") %>'>
<%# Eval("LocationName") %>
</option>
</ItemTemplate>
</asp:Repeater>
</select>
</fieldset>
測試時這將呈現爲:
<fieldset class="ui-field-contain">
<label>Channel</label>
<select name="Channel" id="channel">
<option value='CG'>
CG
</option>
<option value='KS'>
KS
</option>
<option value='KT'>
KT
</option>
<option value='LOST'>
LOST
</option>
<option value='PART'>
PART
</option>
<option value='UNL'>
UNL
</option>
</select>
</fieldset>
我從看W3Schools的例子理解是,jQuery是應該插入一個按鈕和DIV到網頁,使我得到的按鈕來選擇。
它看起來並不像JQuery mobile在瀏覽器上的頁面呈現中觸發。