Raju King

Raju King

  • NA
  • 2
  • 585

How do I get a hiddenfield id name in default.aspx.cs?

Aug 12 2015 9:11 AM
<asp:TemplateField HeaderText="Customer ID"> 
<ItemTemplate>     
    <asp:HiddenField runat="server" visible="true" ID ="HiddenField2"   Value='<%#Eval("Customer ID") %>'   >
</asp:HiddenField>     
        <asp:Label runat="server" ID="HiddenField1"  Text ='<%#Eval("Customer ID")%>' Visible="true" >
</asp:Label>
 </ItemTemplate>
 </asp:TemplateField>

Answers (2)