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>

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes