<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"];
您可能感兴趣的文章: