i use ASP.NET 2005
I use gridview to display the Employ information.And display a checkbox filed inside the gridview add as a template.
I want to store the emp_no into a variable when i checked this chechbox corresponding to the field(row).
Please anybody help me.If it is possible.
my code-----
<asp:GridView ID="grdempinf" runat="server" AutoGenerateSel ectButton="True " OnSelectedIndex Changed="grdemp inf_SelectedInd exChanged">
<Columns>
<asp:TemplateFi eld HeaderText="Emp loy">
<ItemTemplate >
<asp:CheckBox ID="chkemp" runat="server"/>
</ItemTemplate>
</asp:TemplateFie ld>
I use gridview to display the Employ information.And display a checkbox filed inside the gridview add as a template.
I want to store the emp_no into a variable when i checked this chechbox corresponding to the field(row).
Please anybody help me.If it is possible.
my code-----
<asp:GridView ID="grdempinf" runat="server" AutoGenerateSel ectButton="True " OnSelectedIndex Changed="grdemp inf_SelectedInd exChanged">
<Columns>
<asp:TemplateFi eld HeaderText="Emp loy">
<ItemTemplate >
<asp:CheckBox ID="chkemp" runat="server"/>
</ItemTemplate>
</asp:TemplateFie ld>
Comment