62,046
社区成员
发帖
与我相关
我的任务
分享
public partial class WebUserControl : System.Web.UI.UserControl
{
public event EventHandler 选择项变啦;
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (this != null)
this.选择项变啦(this, EventArgs.Empty);
}
这样就使用自己的接口向其它组件隐藏了内部实现!外部无权、无必要管它是RadioButtonList还是别的什么控件实现的。