废话省了
演示地址: http://dool.com.cn/controls/districtcontrols.aspx
DistrictControls.aspx 源代码
<%
@ Page Language
=
"
C#
"
%>
<% @ Register Assembly = " EFPlatform.Common " Namespace = " EFPlatform.Common.WebControls " TagPrefix = " efp " %>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< script runat ="server" >
protected void Button1_Click(object sender, EventArgs e)
{
this .DistrictLabel1.Code = this .DistrictDropDownList1.Code;
}
</ script >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head runat ="server" >
< title > 无标题页 </ title >
</ head >
< body >
< form id ="form1" runat ="server" >
< div >
< efp:DistrictDropDownList ID ="DistrictDropDownList1" runat ="server" />
< asp:Button ID ="Button1" runat ="server" OnClick ="Button1_Click" Text ="Button" />< br />
< br />
< efp:DistrictLabel ID ="DistrictLabel1" runat ="server" >
</ efp:DistrictLabel >
</ div >
</ form >
</ body >
</ html >
<% @ Register Assembly = " EFPlatform.Common " Namespace = " EFPlatform.Common.WebControls " TagPrefix = " efp " %>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< script runat ="server" >
protected void Button1_Click(object sender, EventArgs e)
{
this .DistrictLabel1.Code = this .DistrictDropDownList1.Code;
}
</ script >
< html xmlns ="http://www.w3.org/1999/xhtml" >
< head runat ="server" >
< title > 无标题页 </ title >
</ head >
< body >
< form id ="form1" runat ="server" >
< div >
< efp:DistrictDropDownList ID ="DistrictDropDownList1" runat ="server" />
< asp:Button ID ="Button1" runat ="server" OnClick ="Button1_Click" Text ="Button" />< br />
< br />
< efp:DistrictLabel ID ="DistrictLabel1" runat ="server" >
</ efp:DistrictLabel >
</ div >
</ form >
</ body >
</ html >