Following are the steps to be done:-
- In ASPX page you have to add Item template tag in data grid.
<ItemTemplate>
<asp:CheckBox id="CheckBox1"
runat="server" AutoPostBack="True"
OnCheckedChanged="Check_Clicked"></asp:CheckBox>
</ItemTemplate>
If you look at the Item template, we have “OnCheckChanged” event. This “OnCheckChanged” event has “Check Clicked” subroutine is actually in behind code. Note this method, which is in behind code, should either be “protected” or “public”
Following below is the subroutine, which defines the method
Protected Sub Check Clicked
(By Val sender As Object, By Val e As EventArgs)
‘Do something
End Sub
Above is the
ASP.NET
interview questions & also see the following video on Authentication,
Authorization, Principal and Identity objects: -