Yogesh Ghorpade

Yogesh Ghorpade

  • NA
  • 762
  • 148k

How To Get Value From A Tag Using Reapeter Control

Feb 21 2018 5:22 AM
I Want To Access The HiddenField Value OnbtnEditClick Event from a tag in reapeter 
 
<asp:Repeater ID="RptDeptList" runat="server" OnItemCommand="RptDeptList_ItemCommand">
<ItemTemplate>
<tr>
<td width="47%">
<div ><%#Eval("DepartmentName")%></div>
</td>
<td width="47%">
<div ><%#Eval("MFGUnitName")%></div>
</td>
<td width="6%">
<div align="center">
<a id="btnEdit" href="#" runat="server">
<img src="images/edit.png" alt="edit" title="edit"></a>
<asp:HiddenField ID="hfDeptId" Value='<%#Eval("DeptId")%>' runat="server" />
<asp:HiddenField ID="hfDeptName" Value='<%#Eval("DepartmentName")%>' runat="server" />
<asp:HiddenField ID="hfMFGUnitId" Value='<%#Eval("MFGUnitId")%>' runat="server" />
</div>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>

Answers (2)