10/01/20 15:01:06
>>749
こんなユーザコントロールを作って、
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestUserControl.ascx.cs" Inherits="TestUserControl" %>
<input id="<% this.GetOwnerName(); %>_CheckBox1" type="checkbox" onclick="CheckBoxClicked('<% this.GetOwnerName(); %>')" />
<asp:HiddenField ID="HiddenField1" runat="server" />
public partial class TestUserControl : System.Web.UI.UserControl
public void GetOwnerName()
{
Response.Write(this.ID.ToString());
}