Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How to use a checkbox in a datagrid
How can I track event in checkbox which is one of the columns of a datagrid ?
✍: Guest
Note: - This is normally asked when the interviewer want to see that have you really
worked practically on a project.
Following are the steps to be done :-
1. 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>
2. If you look at the Itemtemplate we have gOnCheckChangedh event. This
gOnCheckChangedh event has gCheck_Clickedh subroutine is actually in
behind code. Note this method which is in behind code should either be
protectedh or gpublich
3. 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
2007-10-24, 4673👍, 0💬
Popular Posts:
Does there exist any other function which can be used to convert an integer or a float to a string? ...
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We ...
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow t...
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, ...
How can method defined in multiple base classes with same name be invoked from derived class simulta...