Put the
CheckBox
and
Label
control inside
ItemTemplate
. The content of this template will be repeated for each record present in its DataSource
Try
<asp:repeater id="rptrrol" runat="server" xmlns:asp="#unknown">
<itemtemplate>
<asp:label id="lblrid" text="<%#Eval("rid") %>" visible="false" runat="server"></asp:label>
<asp:checkbox id="chkrole" runat="server" text="<%#Eval("role") %>">
OnCheckedChanged="chkrole_CheckedChanged" AutoPostBack="true" />
</asp:checkbox>
</itemtemplate>
</asp:repeater>
Thanks