Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
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, 5296👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - What are types of compatibility in VB6? There are three possible project ...
Should synchronization primitives be used on overrided bean methods? No. The EJB specification speci...
How To Escape Special Characters in SQL statements? - MySQL FAQs - Introduction to SQL Basics There ...
How can I use tables to structure forms Small forms are sometimes placed within a TD element within ...
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We ...