請問如何讓以下aspx.cs中的GetData可以讀取combobox選擇了的數值?
**** aspx ****
<script id="scriptInit" type="text/javascript">
require(["wijmo.wijcombobox"], function () {
$(document).ready(function () {
$("#combobox").wijcombobox({
data: [{
label: 'c++',
value: 'c++'
}, {
label: 'java',
value: 'java'
}, {
label: 'php',
value: 'php'
}, {
label: 'coldfusion',
value: 'coldfusion'
}]
});
});
});
</script>
<input id="combobox" style ="width: 80px" onsubmit="GetData"/>
**** aspx.cs ****
protected void GetData(object sender, System.EventArgs e)
{
ShowData(combobox);
} |
|