gridview pass Radio Button selected Value to a parameter

Tav 1 Reputation point
2022-07-27T11:52:03.77+00:00

I'm trying to pass the selected radio button Value to a parameter on gridview UpdateCommand. Any help would be greatly appreciated.

UpdateCommand="update form set IsPatWorking = @IsPatWorking, bodypartpercentageloss = @bodypartpercentageloss where claimid =@claimid

<asp:TemplateField HeaderText="Is Patient Working ? Yes or No">

<ItemTemplate>

<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Text="No" Value="False"></asp:ListItem>
<asp:ListItem Text="Yes" Value="True"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
<ControlStyle Width="60px" />
<ItemStyle Width="60px" />
</asp:TemplateField>

Developer technologies | C++
Developer technologies | ASP.NET | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.