想让选择框能像text一样输入,又能下拉选择,客户端就使用这样的代码了:
<%@ Page Language="C#" Debug="True" Strict="True" Explicit="True" Buffer="True"%>
<%@ Import Namespace="System" %>
<html>
<body bgcolor="#FFFFFF" topmargin="0" marginheight="0">
<form runat="server" method="">
<table><tr><td>
<input type="text" size="41" name="new_tips"><span style="WIDTH: 18px">
<select id="lstBox_new_tips" style="MARGIN-TOP: -2px; MARGIN-LEFT: -281px; WIDTH: 299px"
runat="server" οnchange="document.all.new_tips.value=this.options[this.selectedIndex].value" >
<option>aaa</option>
<option>bbb</option>
<option>ccc</option>
</select>
</td></tr></table>
</form>
</body>
</html>