日期:2014-05-17 浏览次数:21019 次
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="user_controls.ascx.cs" Inherits="user_controls" %>
<asp:Panel ID="users_checkbox" runat="server">
<input type="checkbox" ID="Checkbox1"/> 选项1
<input type="checkbox" ID="Checkbox2"/> 选项2
</asp:Panel>
<%@Register TagPrefix="uc" TagName="UserEvent" src="~/user_controls.ascx"%>
……
<uc:UserEvent runat = "server" ID = "checkbox_1"/>