asp.net本身支持一個runat="server" form 如果需要多個就不能嵌套寫了,有些搜索的代碼偏偏布局在form里面,而我又不想寫成服務器控件,只想通過form進行提交,這時候就很麻煩了,大家有什么好方式?類似下面的代碼,頁面頂部尾部中間都有分布,html頁面好說,aspx頁面怎么設計好呢 <form action="/Search.aspx" method="get" id="searchform" onsubmit="return goSearch()" target="_blank"> <input tabindex="1" type="text" id="keyword" name="keyword" value="" onfocus="this.value=''" /> <button tabindex="2" type="submit">搜 索</button></form>
添加回答
舉報
0/150
提交
取消