2
Answers

Html radio button control is not retaining its value after postback

Chetan koralli

Chetan koralli

12y
2.5k
1

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)