punjabtechnicaluniversity.blogspot.in
OR How can I track event in checkbox which is one of the columns of a datagrid ?
Note: - This is normally asked when the interviewer wants to see that have you really worked practically on a project.
Following are the steps to be done :-
In ASPX page you have to add Itemtemplate tag in datagrid.
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server" AutoPostBack="True"
OnCheckedChanged="Check_Clicked"></asp:CheckBox>
</ItemTemplate>
If you look at the Itemtemplate 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(ByVal sender
As Object, ByVal e As EventArgs)
‘ do something
End Sub
The above steps should be defined in short to the interviewer which will give a quick feeling of your practical experience with ASP.NET
OR How can I track event in checkbox which is one of the columns of a datagrid ?
Note: - This is normally asked when the interviewer wants to see that have you really worked practically on a project.
Following are the steps to be done :-
In ASPX page you have to add Itemtemplate tag in datagrid.
<ItemTemplate>
<asp:CheckBox id="CheckBox1" runat="server" AutoPostBack="True"
OnCheckedChanged="Check_Clicked"></asp:CheckBox>
</ItemTemplate>
If you look at the Itemtemplate 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(ByVal sender
As Object, ByVal e As EventArgs)
‘ do something
End Sub
The above steps should be defined in short to the interviewer which will give a quick feeling of your practical experience with ASP.NET
0 comments:
Post a Comment
North India Campus