JS+XML 省份和城市之间的联动实现代码(3)


<table cellspacing="0" cellpadding="0">
<tr>
<td>
UName :
</td>
<td>
<asp:TextBox runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
UCountry :
</td>
<td>
<asp:TextBox runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
UProvince :
</td>
<td>
<asp:DropDownList runat="server" onchange="ResetCity(this,'ddlUCity');">
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
UCity :
</td>
<td>
<asp:DropDownList runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2">
<div>
<asp:Button runat="server" Text="注册"></asp:Button>
</div>
</td>
</tr>
</table>
<script>InitProvince('ddlUProvince');</script>


aspx.cs:

复制代码 代码如下:


string province=Request["ddlUProvince"];
string city=Request["ddlUCity"];

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjydgs.html