I hope someone can help me with the following. I show user information in a table, and also in the row of each user there is a checkbox that says If the user is blocked or not, I want that when the checkbox of a user change state update their Disabled property in the database. The view would be like this:
<asp:GridView runat="server" ID="ListaDeUsuarios"
ShowFooter="True" GridLines="Vertical" CellPadding="4"
CssClass="table table-striped table-bordered"
ItemType="Proyecto.Models.Usuario" DataKeyNames="Id"
SelectMethod="GetUsuarios"
AutoGenerateColumns="false">
<Columns>
<asp:TemplateField HeaderText="Bloqueado">
<ItemTemplate>
<asp:CheckBox Checked=<%# Item.Disabled %> runat="server"
AutoPostBack="True"
OnCheckedChanged="Check_Clicked"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
My question is what to put in the method
public void Check_Clicked(object sender, EventArgs e)
{
}
let me know which is the checkbox that launched the event and and which user do you represent?