Chetan koralli

Chetan koralli

  • NA
  • 17
  • 22.9k

Html radio button control is not retaining its value after postback

Oct 9 2012 7:19 AM

Hi, 

Below shown is my gridview template column where i used html radio button control but my issue is during the post back(below button click) it is not retaining its checked status can any one help me on this.

<asp:TemplateField HeaderText=""><ItemStyle VerticalAlign="Middle" HorizontalAlign="Center" /><HeaderStyle Font-Bold="true" />
<ItemTemplate>       
  <input type="radio" name="rdGeneric" value="<%# Eval("Id")%>" enableviewstate="true" />       
</ItemTemplate> <HeaderStyle Width="15px" />     
 </asp:TemplateField>

<asp:Button ID="btnManageGenComments" runat="server" Text="Manage Comments" onclick="btnManageGenComments_Click"/><asp:Button ID="btnManageGenComments" runat="server" Text="Manage Comments" onclick="btnManageGenComments_Click"/>


Answers (2)