请教如何制作一个提交表单?
我想作个 <form> 表单,提交后进入检索页.但是我的 <form> 有帮定的dropdownlist所以我必须用了, <form runat= "server "> ,我添加了一个提交按钮,但是不能跳转到指定的页面,请教该如何处理?谢谢。
我的代码如下:
<TABLE width= "100% " border=0 align=left cellPadding=0 cellSpacing=0 class= "unnamed1 ">
<TBODY>
<form name= "form1 " method= "post " action= "./index.aspx " runat= "server ">
<TR>
<TD noWrap align=right width=83> 省份/城市 </TD>
<TD colSpan=2 height=25>
<asp:DropDownList ID= "provinceID " OnSelectedIndexChanged= "provinceID_SelectedIndexChanged " AutoPostBack= "true " runat= "server " />
<asp:DropDownList ID= "cityID " runat= "server " />
</TD>
</TR>
<TR>
<TD noWrap align=right width=83 height=22> 星级 </TD>
<TD align=left colSpan=2 height=25>
<asp:dropdownlist ID= "star " runat= "server ">
<asp:listitem Value= "0 " selected> 不限 </asp:listitem>
<asp:listitem Value= "1 "> 一星 </asp:listitem>
<asp:listitem Value= "2 "> 二星 </asp:listitem>
<asp:listitem Value= "3 "> 三星 </asp:listitem>
<asp:listitem Value= "4 "> 四星 </asp:listitem>
<asp:listitem Value= "5 "> 五星 </asp:listitem>
</asp:dropdownlist>
</TD>
</TR>
<TR>
<TD noWrap align=right width=83> 酒店名称 </TD>
<TD align=left colSpan=2 height=25>
<asp:TextBox ID= "hotelName " runat= "server " Columns= "50 "/> </TD>
</TR>
<TR>
<TD colspan= "3 "> <input type= "submit " name= "Submit2 " value= "提交 "> </TD>
</TR>
<TR align=middle>
TD colSpan=3> </TD>
</TR>
</TBODY>
</form>
</TABLE>
------解决方案--------------------protected void star_SelectedIndexChanged(object sender, EventArgs e)
{
if (star.SelectedValue == "** ")
{
Response.Redirect( "u